autopep8
« Back to VersTracker
Description:
Automatically formats Python code to conform to the PEP 8 style guide
Type: Formula  |  Latest Version: 2.3.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: python formatter linter code-quality pep8
Install: brew install autopep8
About:
autopep8 automatically formats Python code to conform to the PEP 8 style guide. It takes messy or inconsistent code and fixes common issues like line length violations, whitespace problems, and deprecated syntax. This tool helps maintain clean, readable codebases without manual effort.
Key Features:
  • Automatically fixes PEP 8 violations
  • Supports ignoring specific error codes
  • Can format code in-place or output to stdout
  • Handles both Python 2 and Python 3 code
Use Cases:
  • Cleaning up legacy Python codebases
  • Enforcing consistent code style in CI/CD pipelines
  • Quickly formatting code before code reviews
Alternatives:
  • black – Black is more opinionated and non-configurable, while autopep8 allows selective error fixing
  • yapf – yapf offers more configuration options but autopep8 is specifically designed for PEP 8 compliance
License: MIT
Dependencies: python@3.14
Bottles available for: all
Version History
Detected Version Rev Change Commit
Oct 11, 2025 1:04am 0 VERSION_BUMP 0932a5ff
Jan 14, 2025 4:50pm 0 VERSION_BUMP c4dbd6d2
Oct 10, 2024 3:14am 0 VERSION_BUMP 80938fbb
Oct 9, 2024 10:26pm 0 VERSION_BUMP a191f028