-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
47 lines (35 loc) · 953 Bytes
/
makefile
File metadata and controls
47 lines (35 loc) · 953 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
46
47
SHELL=/bin/bash
.PHONY:help
help:
@echo "Available targets:"
@echo " help: Show this help message"
@echo " install: Install dev dependencies"
@echo " update: Update dev dependencies"
@echo " test: Run Python tests"
@echo " lint: Run formatters and static analysis checks"
# Standard entry points
# =====================
.PHONY:install
install: install_python_packages install_pre_commit
.PHONY:test
test:
tox --parallel
./scripts/type-ratchet.py check
.PHONY:lint
lint:
pre-commit run --all-files
.PHONY:update
update:
uv lock --upgrade --resolver=backtracking
# Implementation details
# ======================
# Install all required Python packages
.PHONY:install_python_packages
install_python_packages:
uv sync --group dev
.PHONY:install_pre_commit
install_pre_commit:
pre-commit install
# Add new dependencies to uv.lock whenever pyproject.toml changes
uv.lock: pyproject.toml
uv lock --upgrade --resolver=backtracking