-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 830 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: test lint format coverage hooks init walk clean
# --- testing -----------------------------------------------------------------
test:
uv run pytest
coverage:
uv run pytest --cov=wikifi --cov-report=term-missing
# --- lint / format -----------------------------------------------------------
lint:
uv run ruff check .
uv run ruff format --check .
format:
uv run ruff check --fix .
uv run ruff format .
# --- wikifi commands (against the current repo) ------------------------------
init:
uv run wikifi init
walk:
uv run wikifi walk
# --- repo plumbing -----------------------------------------------------------
hooks:
git config core.hooksPath .githooks
chmod +x .githooks/*
clean:
rm -rf .pytest_cache .ruff_cache .coverage htmlcov dist build
find . -type d -name __pycache__ -prune -exec rm -rf {} +