1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[project]
name = "pygitweb-workspace"
version = "0.3.1"
description = "Workspace root for postgit, pygittools, and pygitweb"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = [
"ruff",
"pytest",
"mypy>=1.20.1",
"coverage>=7.15.2",
"pytest-impacted>=0.35.0",
"mcp[client]>=1.28.0",
]
# Playwright runs the browser integration test and the JavaScript unit tests (--js-tests).
playwright = [
"playwright==1.63.0"
]
[tool.uv.workspace]
members = ["postgit", "pygittools", "pygittools-mcp", "pygitweb"]
[tool.uv]
package = false
default-groups = ["dev"]
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"
docstring-code-format = true
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
[tool.pytest.ini_options]
markers = [
"timing: index timing smoke tests (disabled by default; run with --run-timing)",
"js: JavaScript unit tests (disabled by default; run with --js-tests)",
"playwright: browser integration tests (disabled by default; run with --playwright)",
]
[tool.mypy]
python_version = "3.12"
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
warn_return_any = true
strict_equality = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_generics = true
exclude = [
".*_test\\.py",
# scripts/pytest.py would otherwise shadow the real pytest package
"^scripts/",
]
[tool.pgt]
actions = [
{ name = "ruff check", script = "scripts/ruff_check.py" },
{ name = "ruff format", script = "scripts/ruff_format.py" },
{ name = "mypy", script = "scripts/mypy.py" },
{ name = "pytest", script = "scripts/pytest.py" },
]
[tool.pgt.sets.testversions]
actions = [
{ name = "pytest 3.12", script = "scripts/pytest_version.py", args = ["3.12"] },
{ name = "pytest 3.13", script = "scripts/pytest_version.py", args = ["3.13"] },
{ name = "pytest 3.14", script = "scripts/pytest_version.py", args = ["3.14"] },
{ name = "pytest 3.15", script = "scripts/pytest_version.py", args = ["3.15"] }
]