-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 900 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (32 loc) · 900 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
PYTHON = uv run python
SRC = hippo
TESTS = tests
.PHONY: help install lint format typecheck check test ci build clean
help:
@echo "Available commands:"
@echo " make install Install dependencies"
@echo " make lint Run ruff lint"
@echo " make format Run ruff format"
@echo " make typecheck Run mypy"
@echo " make check Run all checks"
@echo " make test Run tests"
@echo " make ci Simulate CI run"
@echo " make build Build package"
@echo " make clean Remove build artifacts"
install:
uv sync --frozen
lint:
uv run pre-commit run ruff --all-files
format:
uv run pre-commit run ruff-format --all-files
typecheck:
uv run pre-commit run mypy --all-files
check:
uv run pre-commit run --all-files
test:
uv run pytest
ci: check test
build:
uv run python -m build
clean:
rm -rf build dist *.egg-info .pytest_cache .mypy_cache .ruff_cache