Adding a linter or formatter to your project

Linter or formatter configured · ci.linter

Why it matters

An enforced style removes a whole class of review comments and catches simple bugs — unused variables, shadowed names — before a human reads the diff.

How to fix it

What to do: Add ruff config to pyproject.toml.

[tool.ruff]
line-length = 88
select = ["E", "F", "W", "I", "B"]
ignore = ["E501"]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"


Install: pip install ruff and add to CI: ruff check . && ruff format --check .

Does your repository pass this check?

Free for public GitHub repositories, no account needed. 50+ DevOps and security checks in about ten seconds.

Public repositories where this check fails

Related checks