fleetlint Policy for a fleet of repositories
v0.3
Getting started

lint/python-rules-enabled

ruff selects the baseline rule families

Severitywarning
Tiersall
Stackspython
Scopeeach
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

[tool.ruff.lint] select in pyproject.toml contains every family in params.required (pycodestyle, pyflakes, isort, bugbear, pyupgrade, simplify, blind-except, bandit, complexity, print), or ALL.

Why

ruff’s default selection is a small subset; blind excepts, security findings and leftover prints are only reported when their families are selected.

Applies when

file("pyproject.toml") && has(toml("pyproject.toml").tool) && has(toml("pyproject.toml").tool.ruff)

Check

For each item in:

params.required
(has(toml("pyproject.toml").tool.ruff.lint) && has(toml("pyproject.toml").tool.ruff.lint.select)
  && (item in toml("pyproject.toml").tool.ruff.lint.select || "ALL" in toml("pyproject.toml").tool.ruff.lint.select))
|| (has(toml("pyproject.toml").tool.ruff.select)
  && (item in toml("pyproject.toml").tool.ruff.select || "ALL" in toml("pyproject.toml").tool.ruff.select))

Parameters

  • required: [E F I B UP SIM BLE S C90 T20]

Fix

Add the missing families to select under [tool.ruff.lint].

Agent instruction: Add each reported family to [tool.ruff.lint] select; ratchet the violations that appear with ruff check --add-noqa instead of fixing them in the same change.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).

See: https://fleetlint.org/stacks/#python


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.