- Home
- Code Formatting Tools
- autopep8
On the recordRead 3 Oct 202618 facts
autopep8
On the record
- Audience
- PyPI classifies the intended audience as developers and the environment as console.pypi.org · read 3 Oct 2026
- Change control
- By default, autopep8 makes whitespace changes; non-whitespace fixes can be enabled with the aggressive option.github.com · read 3 Oct 2026
- Change controls
- The tool supports selecting or ignoring fix codes, setting a maximum line length, and enabling more aggressive changes.github.com · read 3 Oct 2026
- Compatibility
- PyPI lists Python >=3.9 as a requirement and classifies the operating system as OS Independent.pypi.org · read 3 Oct 2026
- Configuration
- It supports configuration through pyproject.toml, setup.cfg, tox.ini, .pep8, and .flake8 files.github.com · read 3 Oct 2026
- Fixes
- Listed fixes include indentation, whitespace, blank lines, imports, line length, and selected code style issues.github.com · read 3 Oct 2026
- How it works
- It uses pycodestyle to identify formatting issues and can fix most issues that pycodestyle reports.github.com · read 3 Oct 2026
- Installation
- The project documents installation with `pip install --upgrade autopep8`.github.com · read 3 Oct 2026
- Integration
- autopep8 can be used as a pre-commit hook.github.com · read 3 Oct 2026
- Intended audience
- PyPI classifies the package for developers and lists its environment as Console.pypi.org · read 3 Oct 2026
- License
- PyPI identifies the project license as MIT License.pypi.org · read 3 Oct 2026
- Limit
- By default, autopep8 makes whitespace changes only; some fixes that can alter code meaning require the `--aggressive` option.github.com · read 3 Oct 2026
- Programming interface
- The project documents using autopep8 as a Python module through its `fix_code()` function.github.com · read 3 Oct 2026
- Purpose
- autopep8 automatically formats Python code to conform to the PEP 8 style guide.github.com · read 3 Oct 2026
- Python requirement
- The package metadata requires Python 3.9 or newer.pypi.org · read 3 Oct 2026
- Requirements
- autopep8 requires pycodestyle.github.com · read 3 Oct 2026
- Support and maintenance
- The project links to GitHub Issues and lists two PyPI maintainers.github.com · read 3 Oct 2026
- Windows
- The configuration documentation refers to a Windows environment and its `~\.pycodestyle` global configuration file.github.com · read 3 Oct 2026