-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 694 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 694 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
# Disable echoing executed statements for specific commands
.SILENT: install
# .DEFAULT_GOAL := help
# Assumes that pdm is installed (difficult to check using Makefile conditional variables)
install:
python -m venv .venv
pdm use -f .venv
pdm install --production
make init-pre-commit
cp .env.example .env
echo "Please fill in .env file"
install-dev: install
pdm install --group dev
init-pre-commit:
# --hook-type commit-msg is required for gitlint hook to work. commit-msg hook is not installed by default
pdm run pre-commit install --install-hooks --hook-type commit-msg --hook-type pre-push
build:
docker compose build
run-docker:
docker compose up
test:
python -m pytest