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] [tool.poetry.group.dev.dependencies]
mypy = "^1.4.1" mypy = "^1.4.1"
pyright = "^1.1.323" pyright = "^1.1.323"
ruff = "^0.1.5" ruff = "^0.7.1"
[tool.ruff] [tool.ruff]
target-version = "py310" # Always generate Python 3.10-compatible code target-version = "py310" # Always generate Python 3.10-compatible code
extend-exclude = [
"docs", "frontend"
]
[tool.ruff.lint]
select = [ select = [
"ASYNC", # flake8-async "ASYNC", # flake8-async
"C4", # flake8-comprehensions "C4", # flake8-comprehensions
@ -68,13 +73,9 @@ select = [
"W", # pycodestyle warnings "W", # pycodestyle warnings
] ]
ignore = [ ignore = [
"E203", # whitespace-before-punctuation "RUF006", # asyncio-dangling-task
"W292", # missing-newline-at-end-of-file
"PERF203", # try-except-in-loop "PERF203", # try-except-in-loop
] ]
extend-exclude = [
"docs", "frontend"
]
[tool.ruff.lint.mccabe] [tool.ruff.lint.mccabe]
max-complexity = 7 max-complexity = 7