-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (33 loc) · 1.1 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PYTHON=python3.10
VENV= .venv/bin/activate
install:
source $(VENV); \
pip install --upgrade pip-tools pip setuptools; \
$(PYTHON) -m piptools compile -o requirements/main.txt pyproject.toml; \
$(PYTHON) -m piptools compile --extra dev -o requirements/dev.txt pyproject.toml; \
pip install -r requirements/main.txt -r requirements/dev.txt
update-deps:
source $(VENV); \
pip install --upgrade pip-tools pip setuptools; \
$(PYTHON) -m piptools compile --upgrade --resolver backtracking -o requirements/main.txt pyproject.toml; \
$(PYTHON) -m piptools compile --extra dev --upgrade --resolver backtracking -o requirements/dev.txt pyproject.toml
init:
source $(VENV); \
pip install --editable . \
pip install --upgrade -r requirements/main.txt -r requirements/dev.txt
update: update-deps init
format:
source $(VENV); \
isort src; \
black --exclude ^/.venv/ .
mypy:
source $(VENV); \
mypy src
start-docker-colima:
colima start
stop-docker-colima:
colima stop
build-image:
docker build -f Dockerfile -t innholdsmengde .
build-local-image:
docker build -f Dockerfile.local -t innholdsmengde_local .