-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (28 loc) · 851 Bytes
/
Makefile
File metadata and controls
33 lines (28 loc) · 851 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
.ONESHELL:
ENV_PREFIX=$(shell python -c "if __import__('pathlib').Path('.venv/bin/pip').exists(): print('.venv/bin/')")
.PHONY: help
help: ## Show the help.
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@fgrep "##" Makefile | fgrep -v fgrep
.PHONY: install
install: ## Install dependencies
@echo "Installing Python"
uv python install 3.14
@echo "Installing dependencies"
uv sync --all-groups
@echo "Installing pre-commit hooks"
uv run pre-commit install
@echo "Updating pre-commit hooks"
uv run pre-commit autoupdate
.PHONY: test
test: ## Run the tests
@echo "Running tests"
uv run pytest tests
.PHONY: test-docker
test-docker: ## Run the tests in a Docker container
@echo "Building Docker image"
docker compose build
@echo "Running tests in Docker container"
docker compose run --rm template uv run pytest tests