From a927f10a01f30dc1891bad9221705d765ad4c72a Mon Sep 17 00:00:00 2001 From: Kyle-Neale Date: Fri, 4 Oct 2024 10:17:14 -0400 Subject: [PATCH] Add lint rule to ignore B017 --- pyproject.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c42e8f59e..84ca7c415 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,6 @@ exclude = ''' ''' include = '\.pyi?$' line-length = 120 -py36 = false skip-string-normalization = true [tool.ruff] @@ -36,7 +35,7 @@ exclude = [ target-version = "py38" line-length = 120 # Import settings from legacy flake8 config -select = [ +lint.select = [ "B", "C", "E", @@ -45,7 +44,7 @@ select = [ "W", "I", ] -ignore = [ +lint.ignore = [ # From legacy flake8 settings "E722", "E741", @@ -55,19 +54,20 @@ ignore = [ "B027", # Ignore McCabe complexity "C901", + "B017", ] -unfixable = [ +lint.unfixable = [ # Don't touch unused imports "F401", ] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["{template_config['package_name']}"] -[tool.ruff.flake8-tidy-imports] +[tool.ruff.lint.flake8-tidy-imports] ban-relative-imports = "all" -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] #Tests can use assertions and relative imports "**/tests/**/*" = ["S101", "TID252"] "tests/models/config_models/deprecations.py" = ["E501"]