mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Support package and module in config file

Open sameer-here opened this issue 3 years ago • 1 comments

Description

Closes #10728

Specifying module(s) to check was supported only via CLI, this PR adds the ability to specify a module from a config file.

Test Plan

This is a pretty small change, I tested it by creating a mypy.ini file and verifying that adding the new options leads to expected outcomes (for example, specifying a package and files together will error here https://github.com/python/mypy/blob/ea933268427737976ef819ea3fff0599264e3d5b/mypy/main.py#L957-L960). If there's a unit test to which I should contribute, I'd be happy to.

Do I need to rebuild the documentation after changing config_file.rst? If so, how is that done?

Thanks!

sameer-here avatar Aug 13 '22 10:08 sameer-here

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Aug 17 '22 19:08 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Sep 24 '22 00:09 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Sep 25 '22 22:09 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Sep 26 '22 16:09 github-actions[bot]

@hauntsaninja looks like all checks are passing, is anything else needed?

sameer-here avatar Sep 29 '22 11:09 sameer-here

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Oct 03 '22 19:10 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Oct 04 '22 12:10 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Oct 04 '22 20:10 github-actions[bot]