-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
52 lines (41 loc) · 970 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# this target runs checks on all files
quality:
isort . -c
flake8
mypy
pydocstyle
black --check .
# this target runs checks on all files and potentially modifies some of them
style:
isort .
black .
# Run tests for the library
test:
coverage run -m pytest tests/
# Build documentation for current version
single-docs:
sphinx-build docs/source docs/_build -a
# update requirements.txt
lock:
cd src; poetry lock
cd src; poetry export -f requirements.txt --without-hashes --output requirements.txt
# Build the docker
build-app:
docker build . -t pyronear/pyro-engine:latest
build-lib:
pip install -e .
build-optional-lib:
pip install -e .[test]
pip install -e .[quality]
pip install -e .[docs]
pip install -e .[dev]
# Run the engine wrapper
run:
docker build . -t pyronear/pyro-engine:latest
docker compose up -d
# Get log from engine wrapper
log:
docker logs -f --tail 50 pyro-engine-run
# Stop the engine wrapper
stop:
docker compose down