-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 891 Bytes
/
Makefile
File metadata and controls
30 lines (25 loc) · 891 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
PYTEST_CMD = pytest -v --cov=sretoolbox --cov-report=term-missing tests/
all:
@echo
@echo "Targets:"
@echo "develop: Installs the sretoolbox package, its dependencies and its development dependencies."
@echo "check: Runs the style check, the code check and the tests."
@echo "clean: Removes the virtualenv and python artifacts."
@echo
develop:
uv sync
check:
uv run ruff format --check
uv run ruff check --no-fix
uv run mypy
uv run --python=3.10 $(PYTEST_CMD)
uv run --python=3.11 $(PYTEST_CMD)
uv run --python=3.12 $(PYTEST_CMD)
uv run --python=3.13 $(PYTEST_CMD)
uv run --python=3.14 $(PYTEST_CMD)
clean:
find . -type d \( -name "build" -o -name "dist" -o -name "*.egg-info" \) -exec rm -fr {} +
find . \( -name "*.pyc" -o -name "*.pyo" -o -name "__pycache__" \) -exec rm -fr {} +
pypi:
uv build --sdist --wheel --out-dir dist
uv publish || true