From b88a5ab47ebb9c53b858b736df7e8a6c3fb49390 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 18 Feb 2024 13:37:00 +0100 Subject: [PATCH] tool.ruff.lint... --- pyproject.toml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 28f35ca..fb5d21b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,10 @@ exclude = ["build/"] ignore_missing_imports = true [tool.ruff] +line-length = 88 # Recommended: 88 +target-version = "py38" + +[tool.ruff.lint] select = [ "A", "B", @@ -96,17 +100,17 @@ select = [ "W", "YTT", ] -line-length = 88 # Recommended: 88 -target-version = "py37" -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 24 # Recommended: 10 -[tool.ruff.pylint] +[tool.ruff.lint.pylint] max-args = 6 # Recommended: 5 max-branches = 25 # Recommended: 12 max-returns = 6 # Recommended: 6 max-statements = 89 # Recommended: 50 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "test/*" = ["C406", "S101", "SIM115"] +"test/_prepare_outputs.py" = ["PLW1510", "S603", "S607"] +"test/test_outputs.py" = ["PLW1510", "S603", "S607"]