lint/configured/python
A linter is configured
Implements lint/configured for python.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | python |
| Scope | each |
| Kind | outcome |
| Source | library v0.6.0 |
| Selected by | fleetlint-recommended@v0.6.0 |
Requirement
A Python linter is configured in the project or a parent directory: ruff ([tool.ruff] in pyproject.toml, or ruff.toml), pylint or flake8. Another linter is added with accept:.
Why
Untyped Python with default linting is where generated code hides most bugs.
Fix
Add [tool.ruff] to pyproject.toml; fleetlint fix --apply appends it and a dev dependency group with ruff and mypy (then uv sync).
Agent instruction: Add [tool.ruff] with the profile’s rule selection to pyproject.toml; ratchet existing violations with ruff check --add-noqa.
fleetlint fix can apply this rule’s fix automatically (2 action(s)).
A finding of this rule points at pyproject.toml.
Sources
- https://csrc.nist.gov/pubs/sp/800/218/final (standard, PW.7.2: Perform the code review and/or code analysis based on the organization’s secure coding standards)
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://docs.astral.sh/ruff/configuration/ (spec)
- https://fleetlint.org/stacks/#python
Generated by fleetlint docs from catalog v0.6.0.