fix: add ruff configuration and fix CI workflow
Some checks failed
CI / test (push) Failing after 4m51s

This commit is contained in:
2026-02-05 10:08:48 +00:00
parent 90fe3fa817
commit 7538a66cd2

View File

@@ -81,3 +81,20 @@ skip = [".venv", "venv"]
max-line-length = 100 max-line-length = 100
exclude = [".venv", "venv", "build", "dist"] exclude = [".venv", "venv", "build", "dist"]
per-file-ignores = ["__init__.py: F401"] per-file-ignores = ["__init__.py: F401"]
[tool.ruff]
target-version = "py39"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "C90", "I"]
ignore = [
"E501", # line too long - handled by black
"F401", # unused imports - common in __init__.py files
"F841", # local variable is assigned but never used
"C901", # function too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"tests/*" = ["F401"] # Allow unused imports in tests