Link Search Menu Expand Document


A Python code linter. More information:

  • Show lint errors in a file:

pylint {{path/to/}}

  • Lint a package or module (must be importable; no .py suffix):

pylint {{package_or_module}}

  • Lint a package from a directory path (must contain an file):

pylint {{path/to/directory}}

  • Lint a file and use a configuration file (usually named pylintrc):

pylint --rcfile {{path/to/pylintrc}} {{path/to/}}

  • Lint a file and disable a specific error code:

pylint --disable {{C,W,no-error,design}} {{path/to/file}}