mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
prek replaces pre-commit as the hook runner and reads the same config. A new commit-msg hook in .prek/ rejects subjects over 50 characters, subjects without a module prefix, and body lines over 72 characters. Install the hooks with `uv run prek install`, and run them with `just lint`.
26 lines
553 B
Makefile
26 lines
553 B
Makefile
default: run
|
|
|
|
# Run the game; extra arguments go to pqcli
|
|
run *args:
|
|
uv run pqcli {{args}}
|
|
|
|
# Run with the curses interface
|
|
curses *args:
|
|
uv run pqcli --curses {{args}}
|
|
|
|
# Run with the basic interface
|
|
basic *args:
|
|
uv run pqcli --basic {{args}}
|
|
|
|
# Run the formatters and linters on all files
|
|
lint:
|
|
uv run prek run -a
|
|
|
|
# Run the test suite; extra arguments go to pytest
|
|
test *args:
|
|
uv run pytest {{args}}
|
|
|
|
# Re-record the gameplay parity fixtures (only when gameplay should change)
|
|
record-traces:
|
|
uv run python tests/game_trace.py
|