ladybird/pyproject.toml
Timothy Flynn c204149bbd Meta+CI: Enforce python linting with ruff
We could use flake8 for linting, but ruff is compatible with black
formatting out-of-the-box. It also seems to catch more than flake8,
such as unnecessary f-strings.
2025-06-09 11:25:14 -04:00

15 lines
331 B
TOML

[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
[tool.ruff.lint]
# On top of the defaults (`E4`, E7`, `E9`, and `F`), enable flake8-bugbear (`B`) and isort (`i`).
# https://docs.astral.sh/ruff/rules/
select = ["E4", "E7", "E9", "F", "B", "I"]
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1