One example: We have many SQL Alchemy models.py
files in our repo. It's obvious from our directory structure what the purpose of each models.py
is. I'd really like to disable missing-module-docstring
for any module x.y.z.models
. A doc string will be superfluous noise. A per-file disable comment is about the same.
I have a few more scenarios like this for other checks and other module / python file naming conventions.
I looked through the config docs and didn't find anything. Is there a plugin that can support this?
If I have to go to the "two-pass solution", I guess I could run pylint once excluding models.py
files. Then run it again filtering out everything butmodules.py
?
I run pylint at the command line, in CI, and in VS Code. I configure it in the project.toml
but I'm open to changing this.