Skip to main content

SKY-R102 · Quality, structure and performance

Python lint policy

Low

A linter (Ruff, Flake8 or Pylint) flags common mistakes and style problems in Python code. SKY-R102 reports a repository that contains Python code but has no configuration for any of them.

Languages
Python
Quality gate
counted toward the gate limits (full and diff scans). Advice that is measured on every --quality scan but not listed by default. It is listed, and counted toward max_quality, with --all-advice or when the rule is named in [tool.skylos.gate] rules. A diff scan checks it only when the change touches a policy file such as pyproject.toml.
Finding type
advice
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

Why it matters

Without a shared linter configuration, unused imports, shadowed names and similar slips reach review, and each developer's editor applies different rules, so the same file changes back and forth.

What Skylos flags

pyproject.toml · TOMLReported on line 1
[project]name = "shop"version = "1.0.0" [tool.mypy]files = ["app"]
app/pricing.py · Python
"""Price helpers."""  def total(prices: list[float]) -> float:    return sum(prices)

What Skylos leaves alone

pyproject.toml: same as in the flagged example.

setup.cfg · INI
[flake8]max-line-length = 88exclude = .venv,build

app/pricing.py: same as in the flagged example.

Why Skylos leaves it alone

The linter is configured in a [flake8] section of setup.cfg. Skylos checks the usual places for Ruff, Flake8 and Pylint settings, not only pyproject.toml.

How Skylos decides

  1. Runs with --quality, once per scanned project. A diff scan runs it only when a policy file is among the changed files.
  2. Checks that the project has at least one .py, .pyi or .pyw file, leaving out excluded folders and virtual environments.
  3. Looks for a linter policy at the project root: [tool.ruff], [tool.flake8] or [tool.pylint] in pyproject.toml; a ruff.toml, .ruff.toml, .flake8, .pylintrc, pylintrc or pylintrc.toml file; or a flake8 or pylint section in setup.cfg or tox.ini.
  4. When none exists, reports LOW on line 1 of pyproject.toml, or on the project folder when there is no pyproject.toml.

How to fix it

Add a linter configuration, for example a [tool.ruff] table, and run the linter in CI or a pre-commit hook.

pyproject.toml · TOML · the fix, against the flagged file
[project]name = "shop"version = "1.0.0" [tool.mypy]files = ["app"]Added:  Added: [tool.ruff]Added: line-length = 88Added:  Added: [tool.ruff.lint]Added: select = ["E", "F", "B"]

When it can be wrong

  • A linter configured only in a CI script or an editor setting is not seen, so the project is reported.
  • Other linters, such as Prospector or wemake-python-styleguide on their own, do not count.

Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.

How to silence it

  • ignore = ["SKY-R102"] under [tool.skylos] turns the check off. An inline marker in pyproject.toml is not read.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.