mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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.
15 lines
331 B
TOML
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
|