Project: pygitweb

# Mise CLI / CI surface for the same workspace tasks as [tool.pgt.tasks] (and sets).
# pgt TUI keeps reading pyproject.toml action sets; use `mise run` / `mise tasks ls` here.
[tasks.ruff-check]
description = "ruff check --fix"
run = "uv run python scripts/ruff_check.py"
[tasks.ruff-format]
description = "ruff format --preview"
run = "uv run python scripts/ruff_format.py"
[tasks.mypy]
description = "mypy"
run = "uv run python scripts/mypy.py"
[tasks.pytest-pygittools]
description = "pytest --impacted for pygittools"
usage = """
arg "<module>" help="Package for --impacted-module" default="pygittools"
arg "[pytest-args]" var=#true
"""
run = "uv run python scripts/pytest_impacted.py"
[tasks.pytest-pygitweb]
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"
"""
run = "uv run python scripts/pytest_impacted.py"
[tasks.pytest-3-12]
description = "pytest on Python 3.12"
usage = 'arg "<version>" help="Python version" default="3.12"'
run = "uv run python scripts/pytest_version.py"
[tasks.pytest-3-13]
description = "pytest on Python 3.13"
usage = 'arg "<version>" help="Python version" default="3.13"'
run = "uv run python scripts/pytest_version.py"
[tasks.pytest-3-14]
description = "pytest on Python 3.14"
usage = 'arg "<version>" help="Python version" default="3.14"'
run = "uv run python scripts/pytest_version.py"
[tasks.pytest-3-15]
description = "pytest on Python 3.15"
usage = 'arg "<version>" help="Python version" default="3.15"'
run = "uv run python scripts/pytest_version.py"
[tasks.pytest-all]
description = "full pytest suite (+ playwright, js)"
usage = 'arg "[pytest-args]" var=#true default="--playwright --js-tests"'
run = "uv run python scripts/pytest.py"
[tasks.check]
description = "Run default quality checks"
depends = ["ruff-check", "ruff-format", "mypy", "pytest-pygittools", "pytest-pygitweb"]