LinuxCommandLibrary

pylint

A Python code linter.

TLDR

Show lint errors in a file

$ pylint [path/to/file.py]
copy


Lint a file and use a configuration file (usually named pylintrc)
$ pylint --rcfile [path/to/pylintrc] [path/to/file.py]
copy


Lint a file and disable a specific error code
$ pylint --disable [C,W,no-error,design] [path/to/file]
copy

Copied to clipboard