updates pyproject.toml (ruff version and config)

This commit is contained in:
Mose Mueller 2024-10-31 07:47:13 +01:00
parent f9a3ec8ba6
commit a723989006

View File

@ -34,10 +34,15 @@ optional = true
[tool.poetry.group.dev.dependencies]
mypy = "^1.4.1"
pyright = "^1.1.323"
ruff = "^0.1.5"
ruff = "^0.7.1"
[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
@ -68,13 +73,9 @@ select = [
"W", # pycodestyle warnings
]
ignore = [
"E203", # whitespace-before-punctuation
"W292", # missing-newline-at-end-of-file
"RUF006", # asyncio-dangling-task
"PERF203", # try-except-in-loop
]
extend-exclude = [
"docs", "frontend"
]
[tool.ruff.lint.mccabe]
max-complexity = 7