-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Enable/disable a linter for a subset of files in a project #8106
Comments
Closing a duplicate of #3767 You can subscribe to that issue to get updates on this problem 😄 |
@DanielNoord thanks for the triage. Am I reading this correctly that a |
I think this could be a substitute to having configuration per-directory which would solve the problem more generally. Maybe it's best if we focus on per-dir configuration instead. (#618) |
Current problem
I'd like to have the
missing-function-docstring
andmissing-module-docstring
warnings enabled for the main code of my project, but not for test files where they don't add much value:There doesn't seem to be a way to do this at the moment, hence this feature request.
Desired solution
I'd like a way to disable these warnings for a subset of files.
There's already the
--no-docstring-rgx
option which I can use to disablemissing-function-docstring
for unit tests (which always start withtest_
in my project). But there's no such option formissing-module-docstring
.Additional context
I asked about this on Stack Overflow and was referred here: How can I disable pylint's missing-module-docstring for unit tests?
A fix for #618 would also address my issue, but my issue could also be fixed more narrowly by adding a
--no-docstring-file-rgx
or some such.The text was updated successfully, but these errors were encountered: