description | title | layout | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Autopep8 automatically formats Python code to meet PEP 8 standards, using pycodestyle to identify and correct formatting issues for cleaner code. |
Trunk | How to run Autopep8 |
|
Autopep8 is a formatter for Python.
You can enable the Autopep8 formatter with:
trunk check enable autopep8
Autopep8 will be auto-enabled if a .pep8
config file is present.
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.
- Autopep8 site
- Autopep8 Trunk Code Quality integration source
- Trunk Code Quality's open source plugins repo