-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 667 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 667 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
36
37
VENV=.venv
PY=$(VENV)/bin/python
PIP=$(VENV)/bin/pip
.PHONY: venv deps test unit integration lint clean
venv:
python3 -m venv $(VENV)
$(PY) -m pip install -U pip
deps: venv
# Install package + dev extras
$(PIP) install -e .[dev]
# Fast unit tests (only pure-unit tests)
unit: deps
$(PY) -m pytest -q tests/test_utils.py tests/test_config.py
# Full test suite (integration/emulator tests may be skipped if emulator not present)
integration: deps
$(PY) -m pytest -q
cli: deps
$(PY) cli.py
# Default test target: run unit tests
test: unit
lint: deps
$(PIP) install ruff black
ruff check .
black .
clean:
rm -rf $(VENV)
rm -rf build dist *.egg-info