> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pylint

> Learn about Pylint, the versatile Python linter for error detection, code smell elimination, and PEP 8 enforcement.

[**Pylint**](https://pypi.org/project/pylint/) is a linter for Python.

You can enable the Pylint linter with:

```shell theme={null}
trunk check enable pylint
```

<Frame caption="Pylint example output">
  <img src="https://mintcdn.com/trunk-4cab4936/WAR0qJ1WO0rtUlqz/assets/code-quality/overview/linters/supported/pylint.gif?s=dfb1d2824284c6d9300f722d764d8779" alt="pylint example output" width="1000" height="600" data-path="assets/code-quality/overview/linters/supported/pylint.gif" />
</Frame>

## 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](../configure-linters#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:

```yaml theme={null}
- pylint@2.11.0:
    packages:
      - pylint-django@2.4.4
```

## Links

* [Pylint site](https://pypi.org/project/pylint/)
* Pylint Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/pylint)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
