Project: pygitweb

ee74cd2 [project]
5e51915 name = "pygitweb-workspace"
fa0606c version = "0.3.1"
5e51915 description = "Workspace root for postgit, pygittools, and pygitweb"
5e86010 requires-python = ">=3.12"
ee74cd2 dependencies = []
[dependency-groups]
2c0c084 dev = [
"ruff",
"pytest",
"mypy>=1.20.1",
d7eac88 "coverage>=7.15.2",
30e34bf "pytest-impacted>=0.35.0",
c3ea5b9 "mcp[client]>=1.28.0",
2c0c084 ]
3aa2987 # Playwright runs the browser integration test and the JavaScript unit tests (--js-tests).
2848197 playwright = [
"playwright==1.63.0"
]
ee74cd2
[tool.uv.workspace]
0e30bdd members = ["postgit", "pygittools", "pygittools-mcp", "pygitweb"]
ee74cd2
[tool.uv]
package = false
d2279d8 default-groups = ["dev"]
997da40
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
103ed4a
0e30bdd [tool.pytest.ini_options]
markers = [
"timing: index timing smoke tests (disabled by default; run with --run-timing)",
d2279d8 "js: JavaScript unit tests (disabled by default; run with --js-tests)",
2848197 "playwright: browser integration tests (disabled by default; run with --playwright)",
0e30bdd ]
103ed4a [tool.mypy]
4614448 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
103ed4a exclude = [
053f925 ".*_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" },
bae6568 { name = "pytest pygittools", script = "scripts/pytest_impacted.py", usage = 'arg "<module>" help="Package for --impacted-module"\narg "[pytest-args]" var=#true', args = ["pygittools"], description = "pytest --impacted for pygittools" },
{ name = "pytest pygitweb", script = "scripts/pytest_impacted.py", usage = 'arg "<module>" help="Package for --impacted-module"\narg "[pytest-args]" var=#true', args = ["pygitweb", "--impacted-tests-dir", "pygitweb"], description = "pytest --impacted for pygitweb" },
103ed4a ]
966394d
[tool.pgt.sets.testversions]
actions = [
bae6568 { name = "pytest 3.12", script = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version"', args = ["3.12"] },
{ name = "pytest 3.13", script = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version"', args = ["3.13"] },
{ name = "pytest 3.14", script = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version"', args = ["3.14"] },
{ name = "pytest 3.15", script = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version"', args = ["3.15"] },
04f3c66 ]
[tool.pgt.sets.all-tests]
actions = [
bae6568 { name = "pytest all", script = "scripts/pytest.py", usage = 'arg "[pytest-args]" var=#true', args = ["--playwright", "--js-tests"], description = "full pytest suite (+ playwright, js)" },
966394d ]