Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.54 KB

pylint.md

File metadata and controls

64 lines (41 loc) · 1.54 KB
description title layout
Learn about Pylint, the versatile Python linter for error detection, code smell elimination, and PEP 8 enforcement.
Trunk | How to run Pylint
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

Pylint

Pylint is a linter for Python.

You can enable the Pylint linter with:

trunk check enable pylint

pylint example output

Auto Enabling

Pylint will be auto-enabled if any of its config files are present: pylintrc, .pylintrc.

Settings

Pylint supports the following config files:

  • pylintrc
  • .pylintrc

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.

Usage Notes

You may specify additional pylint plugins in your .pylintrc, using the line load-plugins=...

If you want to run the plugin pylint-django as part of your setup, you would add the line load-plugins=pylint_django to your .pylintrc, but you also need to tell trunk to install the package:

Links