Skip to content

Commit 0c20fee

Browse files
vintaclaude
andcommitted
build: add ty config and reorder tool sections in pyproject.toml
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3d99f73 commit 0c20fee

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,30 @@ dev = [
2323
"watchdog==6.0.0",
2424
]
2525

26-
[tool.pytest.ini_options]
27-
testpaths = ["website/tests"]
28-
pythonpath = ["website"]
29-
30-
[tool.ruff]
31-
line-length = 200
32-
3326
[tool.uv]
3427
exclude-newer = "3 days"
3528
no-build = true
3629

3730
[tool.uv.pip]
3831
only-binary = [":all:"]
32+
33+
[tool.ruff]
34+
line-length = 200
35+
36+
[tool.ty.environment]
37+
python-version = "3.13"
38+
root = ["website"]
39+
40+
[tool.ty.terminal]
41+
error-on-warning = true
42+
43+
[tool.ty.rules]
44+
division-by-zero = "error"
45+
possibly-missing-attribute = "error"
46+
possibly-missing-import = "error"
47+
possibly-unresolved-reference = "error"
48+
unused-ignore-comment = "error"
49+
50+
[tool.pytest.ini_options]
51+
testpaths = ["website/tests"]
52+
pythonpath = ["website"]

0 commit comments

Comments
 (0)