lint/python-config
ruff and a strict type checker are configured
| Severity | warning |
| Tiers | all |
| Stacks | python |
| Scope | each |
| Kind | expr |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-recommended@0.1.0 |
Requirement
pyproject.toml configures ruff with a broad rule selection and mypy –strict or (based)pyright strict.
Why
Untyped Python with default linting is where AI-written code hides most bugs.
Applies when
file("pyproject.toml")Check
toml("pyproject.toml") != null && has(toml("pyproject.toml").tool) && has(toml("pyproject.toml").tool.ruff) && (has(toml("pyproject.toml").tool.mypy) || has(toml("pyproject.toml").tool.pyright) || has(toml("pyproject.toml").tool.basedpyright))Fix
Add [tool.ruff] and [tool.mypy] sections; fleetlint fix --apply appends them and a dev dependency group with ruff and mypy to pyproject.toml (then uv sync).
Agent instruction: Add [tool.ruff] with the profile’s rule selection and [tool.mypy] strict = true to pyproject.toml; ratchet existing violations with ruff check --add-noqa.
fleetlint fix can apply this rule’s fix automatically (2 action(s)).
See: https://fleetlint.org/stacks/#python
Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.