Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

flake8

Modular Python linter combining PEP 8 style checking, PyFlakes and complexity analysis.

Linting and formattingPYPI

GitHubWebsite

1. License

License from PyPI license field.

github.com/pycqa/flake8

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What flake8 does

Modular Python linter combining PEP 8 style checking, PyFlakes and complexity analysis.

flake8 popularity

62 / 100
Gid Score, #852 overall
9.5M
downloads a week, pypi
3,837
GitHub stars
44
agent projects use it
flake8: downloads per weekPyPI, flake8 9,499,530
flake8: GitHub starspycqa/flake8 3,837

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How flake8 is used

  • flake8 is a dependency in 44 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.7% of the 1,623 Python ones), #18 of 83 in linting and formatting.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 282; those are left out of every share on this page.
  • The most used alternative in our scan is Black (78 projects).
  • Projects that use it most often also use Black (97.7%), pytest (93.2%), python-dotenv (70.5%).

By coding agent

26 projects, 0.9%
18 projects, 0.5%
9 projects, 0.4%

Often used with

In 97.7% of its projects
In 93.2% of its projects
In 70.5% of its projects
In 63.6% of its projects
In 59.1% of its projects
In 52.3% of its projects
In 50.0% of its projects
In 50.0% of its projects

More about flake8

Funding
  • GitHub Sponsors: https://github.com/asottile
  • Tidelift: https://tidelift.com/funding/github/pypi/flake8
  • 34 GitHub sponsors

See all

More in Linting and formatting

Alternatives

flake8 This page

MITGid 629.5M/wk

Black

Uncompromising Python code formatter enforcing consistent style automatically.

MITGid 7625.7M/wk

Ruff

Extremely fast Python linter and code formatter written in Rust for modern projects.

MITGid 80108M/wk

Pylint

Python static code analyzer for detecting errors and style issues.

GPL-2.0-or-laterGid 619.1M/wk

Compare flake8 with another tool

Get started

Install it.

pip install flake8

No step-by-step start for flake8 yet: we have not written its hand-checked card.