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

Pylint

$ pylint Foundation Low Risk
PyCQA · Code & DevOps · GPL-2.0 · macos / linux / windows

Comprehensive PyCQA Python analyzer checking bug patterns, unused imports, code smells, and naming conventions. Supports machine-readable --output-format=json (and json2) as well as --errors-only (-E) to cut noise in agent loops.

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

Runs local Python AST analysis directly on workspace files without needing 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 19 / 25

Supports --output-format=json / json2 and --errors-only, though bitmask exit codes (1/2/4/8/16/32) can surprise naive callers.

  • --output-format=json outputs clean structured findings
  • Bitmask exit code returns non-zero even on minor convention warnings unless --fail-under is tuned
Trust & Safety 24 / 25

Read-only static analyzer; can load C-extension metadata if --extension-pkg-allow-list is set, otherwise AST-only.

  • Read-only analysis with zero file writes
Setup & Portability 12 / 15

Available via Homebrew, PyPI, and uvx, though import resolution requires running inside the project's environment.

  • Needs project virtualenv dependencies to avoid import-error false positives
Utility & Efficiency 10 / 15

Deep structural checks, but noticeably slow and noisy on large repos unless tuned via .pylintrc.

  • High rule verbosity and slower execution compared to ruff
Maintenance & Lineage 8 / 10

Maintained by pylint-dev/pylint under PyCQA stewardship.

  • Active pylint-dev/pylint maintenance under GPL-2.0
Docs & Verifiability 8 / 10

Extensive ReadTheDocs reference for every message ID and CLI option.

  • Official docs at pylint.readthedocs.io

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Offline local Python analyzer; no credentials stored or required.

Side Effects
Read-Only
Cost & Quotas

GPL-2.0 open-source Python package; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Pylint (pylint) Agent Rules
- Always pass `--output-format=json` (or `json2`) and `--score=n` to avoid ASCII score tables.
- Start with `--errors-only` (`-E`) on unconfigured repos to avoid drowning context in style/refactoring warnings.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check high-signal Python errors as JSON
pylint --errors-only --output-format=json src/

Filters to high-severity error codes (-E) and emits structured JSON findings without modifying files.

Run full project Pylint check with json2 summary
pylint --output-format=json2 --score=n src/

Outputs structured json2 messages plus statistics without human rating banners.

Strengths for Agents

  • + --output-format=json and json2 provide structured message IDs, symbols, and spans.
  • + --errors-only isolates real bugs while suppressing stylistic noise.

Caveats & Pitfalls

  • ! Slow execution and verbose default convention/refactor warnings without a tuned .pylintrc.
  • ! Bitmask exit codes fail CI/agent scripts on minor style notices unless --exit-zero or --fail-under is configured.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI