We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report
If you specify some files for mypy to find with the files = config option, then exclude can't let you ignore them. E.g.
files =
To Reproduce
$ cat mypy.ini [mypy] files = **/*.py exclude = .* $ cat foo/bar.py asdsdfsdf $ mypy foo/bar.py:1: error: Name "asdsdfsdf" is not defined Found 1 error in 1 file (checked 1 source file)
Expected Behavior
exclude should override files.
exclude
files
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
This is documented behaviour: https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-exclude
If you pass a file or module explicitly it will still be checked. For instance, mypy --exclude '/setup.py$' but_still_check/setup.py.
Consider using per-module ignore errors
Sorry, something went wrong.
Ah it's not clear that files = ... is the same as passing files on the command line. Maybe worth documenting.
files = ...
It would be nice if there was a way to do files_exclude = ... but for now I will just run Mypy over each file one by one using a script. :-/
files_exclude = ...
No branches or pull requests
Bug Report
If you specify some files for mypy to find with the
files =
config option, then exclude can't let you ignore them. E.g.To Reproduce
Expected Behavior
exclude
should overridefiles
.Your Environment
mypy.ini
(and other config files): See aboveThe text was updated successfully, but these errors were encountered: