Flake8
$ flake8 Foundation Low RiskClassic PyCQA Python linter combining pycodestyle, pyflakes, and mccabe complexity checks with a broad third-party plugin system. Runs read-only and non-interactively, though it lacks native JSON output or auto-fixing out of the box.
brew install flake8 Lints local Python files offline; direct CLI execution is faster and simpler than MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic exit codes and --color=never, but emits plain text lines with no native --json formatter.
- Requires third-party plugins like
flake8-jsonfor JSON output
Strictly read-only with no auto-fix mutation mode and zero network activity.
- Purely read-only AST and token inspection
Available via Homebrew, PyPI, and uvx, requiring a Python runtime.
- Standard
pip/uvx/brewpackage
Solid legacy compatibility with existing .flake8 / setup.cfg setups, but much slower and narrower than ruff.
- Largely superseded by
ruffunless customflake8-*plugins are required
Maintained under the PyCQA foundation (PyCQA/flake8) with MIT license.
- PyCQA stewardship (
PyCQA/flake8)
Clean Sphinx documentation for core flags and plugin configuration.
- Official docs at flake8.pycqa.org
Security, Auth & Guardrails
Offline local Python linter; no credentials stored or required.
MIT open-source Python package; completely free.
# Flake8 (flake8) Agent Rules - Pass `--color=never` when parsing stdout lines. - If the repo does not specifically mandate `flake8` plugins, prefer `ruff check --output-format=json` for speed and JSON output.
Agent-Ready Command Recipes
Safe Read-Only Queries
flake8 --color=never --show-source src/
Reports path:line:col: CODE message findings without ANSI colors or file mutations.
Strengths for Agents
- + Strictly read-only and simple
file:line:col: CODEstdout format. - + Rich legacy plugin ecosystem for repositories already pinned to
.flake8.
Caveats & Pitfalls
- ! No built-in
--jsonflag and no auto-fix support. - ! Noticeably slower than
ruff, and does not readpyproject.tomlnatively withoutflake8-pyproject.