Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.2 KB

autopep8.md

File metadata and controls

54 lines (32 loc) · 1.2 KB
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
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

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.

Links