> ## 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.

# 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/WAR0qJ1WO0rtUlqz/assets/code-quality/overview/linters/supported/autopep8.gif?s=a14ec69d7595aa5eec69e10d062dd695" 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)
