> ## Documentation Index
> Fetch the complete documentation index at: https://trunk-4cab4936-mintlify-5330112e.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Autopep8

> Autopep8 automatically formats Python code to meet PEP 8 standards, using pycodestyle to identify and correct formatting issues for cleaner code.

[**Autopep8**](https://github.com/hhatto/autopep8#readme) is a formatter for Python.

You can enable the Autopep8 formatter with:

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

<Frame caption="Autopep8 example output">
  <img src="https://mintcdn.com/trunk-4cab4936-mintlify-5330112e/HrB3aiytoOLUyLNF/assets/code-quality/overview/linters/supported/autopep8.gif?s=a3cff307b688e92771be6064e45a26d4" alt="autopep8 example output" width="1000" height="600" data-path="assets/code-quality/overview/linters/supported/autopep8.gif" />
</Frame>

## 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](../configure-linters#moving-linters) for more info.

## Links

* [Autopep8 site](https://github.com/hhatto/autopep8#readme)
* Autopep8 Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/autopep8)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
