Skip to content

Commit

Permalink
Add lint rule to ignore B017
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Neale committed Oct 4, 2024
1 parent 1e56c50 commit a927f10
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ exclude = '''
'''
include = '\.pyi?$'
line-length = 120
py36 = false
skip-string-normalization = true

[tool.ruff]
Expand All @@ -36,7 +35,7 @@ exclude = [
target-version = "py38"
line-length = 120
# Import settings from legacy flake8 config
select = [
lint.select = [
"B",
"C",
"E",
Expand All @@ -45,7 +44,7 @@ select = [
"W",
"I",
]
ignore = [
lint.ignore = [
# From legacy flake8 settings
"E722",
"E741",
Expand All @@ -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"]

0 comments on commit a927f10

Please sign in to comment.