Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec python -m ruff check "$@"
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.PHONY: check test lint build clean install install-rich

check: lint test

test:
python -m pytest tests/ -q

lint:
python -m ruff check .

build: clean
python -m build

clean:
rm -rf dist/ build/ *.egg-info __pycache__ .ruff_cache .pytest_cache
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true

install:
pip install -e .
git config core.hooksPath .githooks

install-rich:
pip install -e ".[rich]"
git config core.hooksPath .githooks