-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 829 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (27 loc) · 829 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
31
32
33
34
35
36
37
38
39
.PHONY: install test lint run train db-migrate docker-build docker-up docker-down clean
install:
poetry install --with dev
test:
poetry run pytest tests/ -v
lint:
poetry run ruff check src/ tests/
run:
poetry run uvicorn src.api.main:app --host 0.0.0.0 --port 8000 --reload
train:
poetry run python scripts/train.py
train-with-data:
poetry run python scripts/train.py --data $(DATA)
db-migrate:
poetry run python scripts/migrate.py
db-downgrade:
poetry run python scripts/migrate.py --downgrade
docker-build:
docker build -t ml-demand-forecasting:latest .
docker-up:
docker compose up --build -d
docker-down:
docker compose down
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name '*.pyc' -delete 2>/dev/null || true
rm -rf .pytest_cache htmlcov .coverage