-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
exclude is COMPLETELY broken #11744
New issue
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
Comments
As documented, the behavior of
I think If you want to ignore errors from modules that are part of your project, you would be better off specifying this in [mypy-app.models.*]
ignore_errors = True You might also get away with PS: Check your tone. If you expect people to help you, you should treat them with respect first. |
Documentation was updated a while ago in #10845 , mypy just hasn't had a release yet. In any case, closing as a duplicate of #8584 (comment) or #10820 |
As you quoted the docs above So the original issue is still valid, and this should not be closed... |
Bug Report
Given that my source code is in directory
src
, and I want to ignore files insrc/app/models
I should be able to exclude that directory or files.The docs:
https://mypy.readthedocs.io/en/stable/command_line.html?highlight=exclude#cmdoption-mypy-exclude
give directions that simply do not work.
To Reproduce
mypy --exclude /src/app/models/ src
Expected Behavior
I should see no files in src/app/models in the output of warnings/errors from mypy
Actual Behavior
I see LOTS Of files in src/app/models in the output of warnings/errors from mypy
Your Environment
mypy.ini
:Attempted work arounds
I have similarly tried all sorts of attempts at the regex, with no success.
mypy --exclude /src/app/models/.*$ src
mypy --exclude /src/app/models$ src
exclude = 'src/app/models/$' (in the ini file)
Nothing works.
Don't you unit tests or integration tests for this stuff??
The text was updated successfully, but these errors were encountered: