Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Flake8

$ flake8 Foundation Low Risk
PyCQA · Code & DevOps · MIT · macos / linux / windows

Classic 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.

FCRS-1.0 Score
79 /100
Good
Medium Confidence
Zero-Friction Install
brew install flake8
CLI vs MCP Decision CLI Only

Lints local Python files offline; direct CLI execution is faster and simpler than MCP.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Deterministic exit codes and --color=never, but emits plain text lines with no native --json formatter.

  • Requires third-party plugins like flake8-json for JSON output
Trust & Safety 25 / 25

Strictly read-only with no auto-fix mutation mode and zero network activity.

  • Purely read-only AST and token inspection
Setup & Portability 13 / 15

Available via Homebrew, PyPI, and uvx, requiring a Python runtime.

  • Standard pip/uvx/brew package
Utility & Efficiency 10 / 15

Solid legacy compatibility with existing .flake8 / setup.cfg setups, but much slower and narrower than ruff.

  • Largely superseded by ruff unless custom flake8-* plugins are required
Maintenance & Lineage 8 / 10

Maintained under the PyCQA foundation (PyCQA/flake8) with MIT license.

  • PyCQA stewardship (PyCQA/flake8)
Docs & Verifiability 7 / 10

Clean Sphinx documentation for core flags and plugin configuration.

  • Official docs at flake8.pycqa.org

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Offline local Python linter; no credentials stored or required.

Side Effects
Read-Only
Cost & Quotas

MIT open-source Python package; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Lint Python directory with plain formatted lines
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: CODE stdout format.
  • + Rich legacy plugin ecosystem for repositories already pinned to .flake8.

Caveats & Pitfalls

  • ! No built-in --json flag and no auto-fix support.
  • ! Noticeably slower than ruff, and does not read pyproject.toml natively without flake8-pyproject.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI