You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A regular expression that matches file names, directory names and paths which mypy should ignore while recursively discovering files to check
I think if you explicitly pass a file to mypy it will still get checked, even if it is matched by the exclude regex, and this appears to be documented behavior.
Its maybe also worth adding this info about the behaviour of exclude:
Note that this flag only affects recursive discovery, that is, when mypy is discovering files within a directory tree or submodules of a package to check. If you pass a file or module explicitly it will still be checked. For instance, mypy --exclude '/setup.py$' but_still_check/setup.py.
Uh oh!
There was an error while loading. Please reload this page.
Not sure if this is a bug, already consulted the docs, so using this form.
Here's I ran:
Here's what I have in my
pyproject.toml
I expect the file I intend to check to be excluded, however it's not. I also tried the following patterns, but none of them works.
/tests
tests/
tests
./tests/
./tests
(^|\\.?)/tests/
(^|\\.)/tests/
I am using Windows 10.
The text was updated successfully, but these errors were encountered: