- Disable messages via the command line
$ pylint --disable=<checks> <files_to_check>
$ pylint --disable=missing-docstring <files>
- Disable messages in code; e.g.
if year % 4 != 0: #pylint: disable=no-else-return
-
Disable messages via a config file
- If a .pylintrc file is in the current directory it will be used
- Can generate one with:
pylint <options> --generate-rcfile > .pylintrc