-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (41 loc) Β· 1.28 KB
/
Makefile
File metadata and controls
51 lines (41 loc) Β· 1.28 KB
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
48
49
50
51
.PHONY: setup \
clean-cache-temp-files \
lint code-check test \
doc \
pipeline all
.DEFAULT_GOAL := all
PATH_PROJECT_ROOT ?= .
TEST_PATH ?= tests
setup:
@echo "Installing dependencies..."
@uv sync --all-extras
@echo "β
Dependencies installed."
clean-cache-temp-files:
@echo "Cleaning cache and temporary files..."
@find . -type d -name __pycache__ -exec rm -rf {} +
@find . -type d -name .pytest_cache -exec rm -rf {} +
@find . -type d -name .mypy_cache -exec rm -rf {} +
@find . -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
@echo "β
Clean complete."
lint:
@echo "Running lint checks..."
@uv run isort $(PATH_PROJECT_ROOT)
@uv run ruff check --fix $(PATH_PROJECT_ROOT)
@uv run ruff format $(PATH_PROJECT_ROOT)
@echo "β
Linting complete."
code-check:
@echo "Running static code checks..."
@uv run mypy $(PATH_PROJECT_ROOT)
@uv run complexipy -f $(PATH_PROJECT_ROOT)
@echo "β
Code and security checks complete."
test:
@echo "Running tests..."
@uv run pytest $(TEST_PATH) -v
@echo "β
Tests complete."
doc:
@echo "Serving documentation..."
@uv run mkdocs serve
pipeline: clean-cache-temp-files lint code-check test
@echo "β
Pipeline complete."
all: setup pipeline doc
@echo "β
All tasks complete."