-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
exclude key in mypy.ini as a single regex doesn't scale for larger code bases #10310
Comments
See also pytorch/pytorch#57967 (comment) for more context. |
In #10903 I think we decided that allowing to specify
which would be equivalent to:
|
Most Python practitioners know that pytest allows multiple Many people are not regex masters and regex syntax can be unintuitive for the uninitiated. Supporting both regex patterns ORed together with |
The result is an "OR" of all the patterns provided. Should be fully backward compatible to existing folks. Fixes python#10310
The result is an "OR" of all the patterns provided. Should be fully backward compatible to existing folks. Fixes python#10310
Assign this to me! I worked on it with #11329 |
Done, thanks @nipunn1313! |
The result is an "OR" of all the patterns provided. Should be fully backward compatible to existing folks. Fixes python#10310
The result is an "OR" of all the patterns provided. Should be fully backward compatible to existing folks. Fixes python#10310
The result is an "OR" of all the patterns provided. Should be fully backward compatible to existing folks. Fixes #10310
The result is an "OR" of all the patterns provided. Should be fully backward compatible to existing folks. Fixes python#10310
Feature
I'd like the
exclude =
inmypy.ini
to have a saner way to specify a lot of paths that one huge one-line regex.This is a follow-up to #9992 (comment)
When trying to use
exclude
(necessary because mypy 0.800 became much more aggressive in including paths by default) I ended up with something like:Both the
files
andexclude
list are likely to grow over time. I don't have a strong preference on howexclude
should work exactly, any pattern that allows breaking the regex into one line per pattern will be fine. E.g.:Using
|
or some character other than a comma to indicate that it does not work likefiles =
seems like a good idea.The text was updated successfully, but these errors were encountered: