-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 872 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 872 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
.PHONY: setup lint lint-fix format typecheck test check build clean changeset
setup:
./scripts/setup.sh
lint:
uv run ruff check .
lint-fix:
uv run ruff check --fix .
format:
uv run ruff check --fix .
uv run ruff format .
format-check:
uv run ruff format --check .
typecheck:
uv run mypy .
test:
uv run pytest
check: lint format-check typecheck test
build:
@for pkg in packages/*/; do \
pkg_name=$$(basename "$$pkg"); \
if grep -q '\[build-system\]' "$$pkg/pyproject.toml" 2>/dev/null; then \
echo "Building $$pkg_name..."; \
uv build --package "$$pkg_name" --out-dir dist/; \
fi; \
done
changeset:
sampo add
clean:
rm -rf dist/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name '*.egg-info' -exec rm -rf {} +
find . -type d -name .mypy_cache -exec rm -rf {} +
find . -type d -name .ruff_cache -exec rm -rf {} +