Configure ruff, pyright, pytest and pre-commit

Strict typing and a broad ruff rule set from the start. Pre-commit hooks
are all local and run via uv so versions come only from uv.lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
torbenandClaude Opus 5.5 committed 2026-12-01 22:47:56 +01:00
1 parent 13773f7195
commit 7c1567e4ec
2 files changed
+66

No files matched your search

+24
View File
@@ -25,3 +25,27 @@ dev = [
[tool.uv]
exclude-newer = "7 days"
[tool.ruff]
target-version = "py314"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "UP", "SIM", "RUF", "PT", "N", "S", "C4", "PTH", "RET"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
[tool.pyright]
include = ["src", "tests"]
typeCheckingMode = "strict"
pythonVersion = "3.14"
venvPath = "."
venv = ".venv"
[tool.pytest.ini_options]
minversion = "9.0"
testpaths = ["tests"]
addopts = ["-ra", "--strict-markers", "--strict-config"]
xfail_strict = true