Autopep8

Autopep8 is a formatter for Python.

You can enable the Autopep8 formatter with:

trunk check enable autopep8
autopep8 example output

Auto Enabling

Autopep8 will be auto-enabled if a .pep8 config file is present.

Settings

Autopep8 supports the following config files:

  • .pep8

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

Last updated