- Add box-drawing characters for nicer header - Add response formatting with success/error indicators - Add mise tasks: cmd (interactive) and cmd-stats (monitoring)
60 lines
1.4 KiB
TOML
60 lines
1.4 KiB
TOML
[tools]
|
|
python = "3.12"
|
|
hk = "latest"
|
|
pkl = "latest"
|
|
|
|
[tasks]
|
|
# =====================
|
|
# Development
|
|
# =====================
|
|
|
|
test = "uv run pytest"
|
|
test-v = "uv run pytest -v"
|
|
test-cov = "uv run pytest --cov=engine --cov-report=term-missing --cov-report=html"
|
|
test-cov-open = "uv run pytest --cov=engine --cov-report=term-missing --cov-report=html && open htmlcov/index.html"
|
|
|
|
lint = "uv run ruff check engine/ mainline.py"
|
|
lint-fix = "uv run ruff check --fix engine/ mainline.py"
|
|
format = "uv run ruff format engine/ mainline.py"
|
|
|
|
# =====================
|
|
# Runtime
|
|
# =====================
|
|
|
|
run = "uv run mainline.py"
|
|
run-poetry = "uv run mainline.py --poetry"
|
|
run-firehose = "uv run mainline.py --firehose"
|
|
|
|
# =====================
|
|
# Command & Control
|
|
# =====================
|
|
|
|
cmd = "uv run cmdline.py"
|
|
cmd-stats = "uv run cmdline.py -w /effects stats"
|
|
|
|
# =====================
|
|
# Environment
|
|
# =====================
|
|
|
|
sync = "uv sync"
|
|
sync-all = "uv sync --all-extras"
|
|
install = "uv sync"
|
|
install-dev = "uv sync --group dev"
|
|
|
|
bootstrap = "uv sync && uv run mainline.py --help"
|
|
|
|
clean = "rm -rf .venv htmlcov .coverage tests/.pytest_cache"
|
|
|
|
# =====================
|
|
# CI/CD
|
|
# =====================
|
|
|
|
ci = "uv sync --group dev && uv run pytest --cov=engine --cov-report=term-missing --cov-report=xml"
|
|
ci-lint = "uv run ruff check engine/ mainline.py"
|
|
|
|
# =====================
|
|
# Git Hooks (via hk)
|
|
# =====================
|
|
|
|
pre-commit = "hk run pre-commit"
|