-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 1.03 KB
/
Makefile
File metadata and controls
40 lines (29 loc) · 1.03 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
all:
.PHONY: update_deps update_lock sync_deps clean check check_ci bundle format
SOURCES = hwbench csv graph
RUFF_VERSION = 0.14.3
update_deps:
uv sync -U
update_lock:
uv lock
sync_deps:
uv sync --all-extras --dev
clean:
uv venv
check:
@uv lock --check || echo "Your lock file should change because you probably added a dependency or bump the minimal Python version. Please run `uv lock`"
uv tool run ruff@$(RUFF_VERSION) format --diff $(SOURCES)
uv tool run ruff@$(RUFF_VERSION) check $(SOURCES)
uv run mypy $(SOURCES)
uv run pytest $(SOURCES)
check_ci:
@uv lock --check || echo "Your lock file should change because you probably added a dependency or bump the minimal Python version, but this is not allowed in the CI. Please run `uv lock`"
uv sync --dev --extra graph-ci
uv tool run ruff@$(RUFF_VERSION) format --diff $(SOURCES)
uv tool run ruff@$(RUFF_VERSION) check --output-format=github $(SOURCES)
uv run mypy $(SOURCES)
uv run pytest $(SOURCES)
bundle:
uv build
format:
uv tool run ruff@$(RUFF_VERSION) format $(SOURCES)