-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (32 loc) · 859 Bytes
/
Makefile
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
SRC_PATH = iterpy
MAKEFLAGS = --no-print-directory
# Dependency management
install:
uv sync
dev:
uv sync --all-extras
test:
@uv run pytest
lint: ## Format code
@echo "––– Linting –––"
@uv run ruff format .
@uv run ruff . --fix --unsafe-fixes \
--extend-select F401 \
--extend-select F841
@echo "✅✅✅ Lint ✅✅✅"
types: ## Type-check code
@echo "––– Type-checking –––"
@uv run pyright .
@echo "✅✅✅ Types ✅✅✅"
validate_ci: ## Run all checks
@echo "––– Running all checks –––"
@make lint
@make types
@make test
docker_ci: ## Run all checks in docker
@echo "––– Running all checks in docker –––"
@docker rm -f iterpy || true
@docker build -t iterpy:latest -f Dockerfile .
@docker run iterpy make validate_ci
pr: ## Submit a PR
@uv run lm sync --squash --automerge