Merge pull request #101 from tiqi-group/fix/ruff_config_for_2.0

fixes pyproject.toml ruff configuration
This commit is contained in:
Mose Müller 2024-02-15 09:11:15 +01:00 committed by GitHub
commit 1e8c7bd141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,11 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py310" # Always generate Python 3.10-compatible code
extend-exclude = [
"docs", "frontend"
]
[tool.ruff.lint]
select = [
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
@ -77,14 +82,9 @@ select = [
"YTT", # flake8-2020
"W", # pycodestyle warnings
]
[tool.ruff.lint]
ignore = [
"PERF203", # try-except-in-loop
]
extend-exclude = [
"docs", "frontend"
]
[tool.ruff.lint.mccabe]
max-complexity = 7