-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 877 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 877 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
.PHONY: all sync install test lint format doc clean done
all: install done
# Sync a local virtual environment in .venv using uv + the lockfile.
sync:
uv sync --extra dev --extra kafka
# Alias
install: sync
test:
uv run -- pytest
lint:
uv run -- ruff format --check .
uv run -- ruff check hots tests
format:
uv run -- ruff format .
uv run -- ruff check --fix hots tests
doc:
uv sync --extra doc
uv run -- sphinx-build -b html doc/source doc/build
done:
@echo "Installation finished successfully.\n\
Run 'uv run -- hots path/to/config/file' to start the application or\n\
'uv run -- hots --help' for command description"
clean:
rm -rf .pytest_cache .eggs *.egg-info .ruff_cache
find . -path ./.venv -prune -o -name "*.pyc" -o -name "*.pyo" -o -name "__pycache__" -print0 | xargs -r -0 rm -rv
@echo "To remove the environment, delete ./.venv manually." >&2