From 9e71cf4e83f3f40323d982c0b3e14c7b13b2ede9 Mon Sep 17 00:00:00 2001 From: avikstroem Date: Thu, 4 Apr 2024 10:42:45 +0200 Subject: [PATCH] Update ruff config --- pyproject.toml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 65ebf55..72e4553 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,8 @@ extra_checks = true [tool.ruff] src = ["src", "test"] + +[tool.ruff.lint] select = [ "E", # pycodestyle "F", # pyflakes @@ -115,9 +117,10 @@ ignore = [ "D100", "D102", "D103", "D104", "D105", "D107", "PTH123", "TRY003", "TRY301", + "UP032", ] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "test/**/*.py" = [ "S101", "S105", "D103", @@ -127,14 +130,14 @@ ignore = [ "ARG001", ] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" -[tool.ruff.flake8-pytest-style] +[tool.ruff.lint.flake8-pytest-style] fixture-parentheses = false mark-parentheses = false parametrize-names-type = "csv" parametrize-values-type = "list" -[tool.ruff.flake8-tidy-imports] +[tool.ruff.lint.flake8-tidy-imports] ban-relative-imports = "parents"