pyproject: adjust to new ruff settings layout

This commit is contained in:
Allison Karlitskaya 2024-02-05 15:54:25 +01:00 committed by Marius Vollmer
parent f9f2da6974
commit 8337901d34

View file

@ -1,4 +1,13 @@
[tool.ruff]
exclude = [
".git/",
"modules/",
"node_modules/",
]
line-length = 118
src = []
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
@ -22,21 +31,14 @@ select = [
"W", # warnings (mostly whitespace)
"YTT", # flake8-2020
]
exclude = [
".git/",
"modules/",
"node_modules/",
]
ignore = [
"FBT002", # Boolean default value in function definition
"FBT003", # Boolean positional value in function call
]
line-length = 118
src = []
[tool.ruff.flake8-pytest-style]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["cockpit"]