Support package and module in config file
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!
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
@hauntsaninja looks like all checks are passing, is anything else needed?
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉