-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 930 Bytes
/
Makefile
File metadata and controls
45 lines (35 loc) · 930 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
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: help install test lint typecheck format clean run
help:
@echo "Available targets:"
@echo " install Install dependencies using uv"
@echo " test Run tests using pytest"
@echo " lint Run linter (ruff)"
@echo " typecheck Run type checker (mypy)"
@echo " format Run code formatter (ruff)"
@echo " coverage Run tests with coverage report"
@echo " clean Remove temporary files"
@echo " run Run the gcpath tool"
install:
uv sync
test:
uv run pytest
coverage:
uv run pytest --cov=src --cov-report=term-missing
lint:
uv run ruff check .
typecheck:
uv run mypy .
format:
uv run ruff format .
uv run ruff check . --fix
clean:
rm .coverage
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .ruff_cache
find . -type d -name "__pycache__" -exec rm -rf {} +
run:
uv run gcpath $(filter-out $@,$(MAKECMDGOALS))
# This allows passing arguments to the run target
%:
@: