-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 734 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 734 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
UV_EXISTS := $(shell command -v uv 2> /dev/null)
install:
@echo "-> Configuring uv package manager"
ifndef UV_EXISTS
curl -LsSf https://astral.sh/uv/install.sh | sh
endif
uv venv --python 3.12
dev: install
@echo "-> Installing Developer Dependencies"
uv sync
uvx pre-commit install
format:
@echo "Formatting code..."
uvx --offline ruff check --fix . || true
uvx --offline ruff format .
clean: format
@echo "Clearing python cache"
find . -type f -name '*.pyc' -delete
find . -type d -name '__pycache__' -delete
@echo "Clearing build files"
rm -rf build dist *.egg-info .*_cache
package: clean
@echo "Packaging code..."
uv build
remove-hooks:
@echo "-> Removing the pre-commit hooks"
uv run pre-commit uninstall