-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
34 lines (28 loc) · 824 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
# this target runs checks on all files
quality:
ruff check .
mypy
black --check .
bandit -r . -c pyproject.toml
# this target runs checks on all files and potentially modifies some of them
style:
black .
ruff check --fix .
# Build the docker
build:
poetry export -f requirements.txt --without-hashes --output requirements.txt
docker build . -t pyronear/pyro-platform:latest
# Run the docker for production
run:
poetry export -f requirements.txt --without-hashes --output requirements.txt
docker compose -f docker-compose.yml up -d --build
# Run the docker for dev purposes
run_dev:
poetry export -f requirements.txt --without-hashes --output requirements.txt
docker compose -f docker-compose-dev.yml up -d --build
# Run the docker
stop:
docker compose down
# Pin the dependencies
lock:
poetry lock -vvv