From c18dfcf0becebaf4237d00429735a42def3fd650 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 2 Feb 2024 16:13:47 +0100 Subject: [PATCH] Bump ruff from 0.1.4 to 0.2.0 --- pyproject.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2e6261a..17d0ebb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ mypy = "^1.8.0" pyright = "1.1.347" [tool.poetry.group.ruff.dependencies] -ruff = "^0.1.14" +ruff = "^0.2.0" [tool.poetry.group.tests.dependencies] coverage = { extras = ["toml"], version = "^7.4.1" } @@ -72,6 +72,9 @@ module = "brreg.*" disallow_untyped_defs = true [tool.ruff] +target-version = "py38" + +[tool.ruff.lint] select = [ "A", # flake8-builtins "ANN", # flake8-annotations @@ -123,16 +126,15 @@ ignore = [ "UP006", # deprecated-collection-type "UP007", # typing-union ] -target-version = "py38" -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "docs/*" = ["INP001"] "tests/*" = ["D"] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["brreg"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" [tool.pyright]