-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 854 Bytes
/
Makefile
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
SOURCES = raspimonitor tests
install:
pip install -r requirements.txt
install-dev:
pip install -r requirements-dev.txt
format:
ruff format $(SOURCES)
ruff check --fix $(SOURCES)
lint:
ruff check $(SOURCES)
unit:
pytest -svvv tests
test: lint unit
freeze:
CUSTOM_COMPILE_COMMAND="make freeze" pip-compile --no-emit-index-url -v -o requirements.txt pyproject.toml
CUSTOM_COMPILE_COMMAND="make freeze-dev" pip-compile --extra "dev" --no-emit-index-url -v -o requirements-dev.txt pyproject.toml
freeze-upgrade:
CUSTOM_COMPILE_COMMAND="make freeze" pip-compile --upgrade --no-emit-index-url -v -o requirements.txt pyproject.toml
CUSTOM_COMPILE_COMMAND="make freeze-dev" pip-compile --extra "dev" --upgrade --no-emit-index-url -v -o requirements-dev.txt pyproject.toml
.PHONY: install install-dev format lint unit test freeze freeze-upgrade