Project: pygitweb

[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"
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", file = "scripts/ruff_check.py" },
{ name = "ruff-format", file = "scripts/ruff_format.py" },
{ name = "mypy", file = "scripts/mypy.py" },
{ name = "pytest-pygittools", file = "scripts/pytest_impacted.py", description = "pytest --impacted for pygittools", usage = """
arg "<module>" help="Package for --impacted-module" default="pygittools"
arg "[pytest-args]" var=#true
""" },
{ name = "pytest-pygitweb", file = "scripts/pytest_impacted.py", description = "pytest --impacted for pygitweb", usage = """
arg "<module>" help="Package for --impacted-module" default="pygitweb"
arg "[pytest-args]" var=#true default="--impacted-tests-dir pygitweb"
""" },
]
[tool.pgt.sets.testversions]
actions = [
{ name = "pytest-3-12", file = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version" default="3.12"' },
{ name = "pytest-3-13", file = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version" default="3.13"' },
{ name = "pytest-3-14", file = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version" default="3.14"' },
{ name = "pytest-3-15", file = "scripts/pytest_version.py", usage = 'arg "<version>" help="Python version" default="3.15"' },
]
[tool.pgt.sets.all-tests]
actions = [
{ name = "pytest-all", file = "scripts/pytest.py", usage = 'arg "[pytest-args]" var=#true default="--playwright --js-tests"', description = "full pytest suite (+ playwright, js)" },
]