Skip to content

Commit 3d03c9c

Browse files
rgommersdnicolodi
authored andcommitted
MAINT: fix ruff configuration in pyproject.toml
This change fixes something that may be invalid TOML, aligns better with the docs at https://docs.astral.sh/ruff/configuration, and avoids Pixi choking on parsing `pyproject.toml` with: ``` 79 │ lint.extend-ignore = [ · ──┬─ · ╰── first defined here 80 │ 'B019', 81 │ ] ... 98 │ 99 │ [tool.ruff.lint.flake8-quotes] · ──┬─ · ╰── duplicate defined here ```
1 parent cfee306 commit 3d03c9c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,15 @@ strict = true
7676

7777
[tool.ruff]
7878
line-length = 127
79-
lint.extend-ignore = [
79+
80+
[tool.ruff.format]
81+
quote-style = 'single'
82+
83+
[tool.ruff.lint]
84+
extend-ignore = [
8085
'B019',
8186
]
82-
lint.select = [
87+
select = [
8388
'B', # flake8-bugbear
8489
'C4', # flake8-comprehensions
8590
'E', # pycodestyle
@@ -93,9 +98,6 @@ exclude = [
9398
'docs/conf.py',
9499
]
95100

96-
[tool.ruff.format]
97-
quote-style = 'single'
98-
99101
[tool.ruff.lint.flake8-quotes]
100102
avoid-escape = false
101103
inline-quotes = 'single'

0 commit comments

Comments
 (0)