mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
I left this here originally thinking that black and ruff are compatible, so either could be used as a local formatter. But it turns that while code formatted with ruff will be unchanged by black, the reverse is not always true. So let's just enforce using ruff.
12 lines
299 B
TOML
12 lines
299 B
TOML
[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
|