diff --git a/pyproject.toml b/pyproject.toml index 6e1a119..4e8b03f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]