-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
38 lines (31 loc) · 1.05 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
.PHONY: help setup format lint test dependency-update dependency-add all-checks
help:
@echo "setup --> Prepare virtual environment for development and benchmarks submodule"
@echo "format --> Run formatters (TOML, python)"
@echo "lint --> Run linters (mypy, ruff)"
@echo "test --> Run test targets"
@echo "all-checks --> Check prerequisites for merging"
@echo "dependency-update --> Update dependencies in requirementes.txt, uv.lock"
@echo "dependency-add --> Add new dependency; must pass 'args=ARGS' such that 'uv add ARGS' is valid"
setup:
uv venv
uv sync
format:
uv run ruff format
uv run taplo format pyproject.toml
lint:
uv run ruff check
uv run ruff format --diff
uv run taplo format --diff
uv run mypy
test:
uv run pytest
dependency-update:
uv sync --upgrade
uv pip compile pyproject.toml -o requirements.txt
uv run taplo format pyproject.toml
dependency-add:
uv add $(args)
uv pip compile pyproject.toml -o requirements.txt
uv run taplo format pyproject.toml
all-checks: test lint