hhatto/autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 40 minutes ago
Added to GitGenius on September 14th, 2026
Created on December 29th, 2010
Open Issues & Pull Requests: 135 (+0)
GitHub issues: Enabled
Number of forks: 283
Total Stargazers: 4,659 (+0)
Total Subscribers: 70 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 54.0 days
Mean response time: 215.9 days
90th percentile: 927.0 days
Tracked items: 18

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 844 days
Stale 30+ days: 15
Stale 90+ days: 14

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (1)
  • enhancement (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

autopep8 is a code formatter that automatically fixes Python code to conform to the PEP 8 style guide.

The tool addresses inconsistent code formatting by using pycodestyle to identify style violations and then applying fixes to resolve them. The tool offers configurable aggressiveness levels, allowing users to control how extensively code is reformatted, and can process files in place or output to standard output.

Developers should choose autopep8 if they want automated PEP 8 compliance without manual intervention. It suits projects that need consistent style enforcement across codebases of any size. The tool works on individual files or entire directory trees through recursive processing, and supports parallel processing for faster formatting of multiple files. Configuration options include the ability to ignore specific error codes, select particular fixes, set maximum line length, and restrict formatting to specific line ranges within files.

The project maintains active test coverage tracking and automated testing through continuous integration workflows. Development activity shows consistent attention to code quality and reliability standards.