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",
f84f28d "nox>=2026.10.20",
"nox-uv>=0.8.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 ]
f84f28d [tool.coverage.run]
omit = [
"noxfile.py"
]
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/",
f84f28d "^noxfile\\.py",
053f925 ]
89fd393 [tool.pgt.tasks.ruff-check]
file = "scripts/ruff_check.py"
[tool.pgt.tasks.ruff-format]
file = "scripts/ruff_format.py"
[tool.pgt.tasks.mypy]
file = "scripts/mypy.py"
[tool.pgt.tasks.pytest-pygittools]
file = "scripts/pytest_impacted.py"
description = "pytest --impacted for pygittools"
usage = """
8fa7f0b arg "<module>" help="Package for --impacted-module" default="pygittools"
arg "[pytest-args]" var=#true
89fd393 """
[tool.pgt.tasks.pytest-pygitweb]
file = "scripts/pytest_impacted.py"
description = "pytest --impacted for pygitweb"
usage = """
8fa7f0b arg "<module>" help="Package for --impacted-module" default="pygitweb"
arg "[pytest-args]" var=#true default="--impacted-tests-dir pygitweb"
89fd393 """
966394d
f84f28d [tool.pgt.sets.test-versions.tasks.pytest-3-12]
89fd393 file = "scripts/pytest_version.py"
f84f28d description = "nox tests-3.12"
usage = """
arg "<version>" help="Python version" default="3.12"
arg "[pytest-args]" var=#true
"""
04f3c66
f84f28d [tool.pgt.sets.test-versions.tasks.pytest-3-13]
89fd393 file = "scripts/pytest_version.py"
f84f28d description = "nox tests-3.13"
usage = """
arg "<version>" help="Python version" default="3.13"
arg "[pytest-args]" var=#true
"""
89fd393
f84f28d [tool.pgt.sets.test-versions.tasks.pytest-3-14]
89fd393 file = "scripts/pytest_version.py"
f84f28d description = "nox tests-3.14"
usage = """
arg "<version>" help="Python version" default="3.14"
arg "[pytest-args]" var=#true
"""
89fd393
f84f28d [tool.pgt.sets.test-versions.tasks.pytest-3-15]
89fd393 file = "scripts/pytest_version.py"
f84f28d description = "nox tests-3.15"
usage = """
arg "<version>" help="Python version" default="3.15"
arg "[pytest-args]" var=#true
"""
89fd393
[tool.pgt.sets.all-tests.tasks.pytest-all]
file = "scripts/pytest.py"
description = "full pytest suite (+ playwright, js)"
usage = 'arg "[pytest-args]" var=#true default="--playwright --js-tests"'