-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 684 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 684 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
.PHONY: install seed run test clean help
help:
@echo "Available commands:"
@echo " install - Install dependencies"
@echo " seed - Seed database with synthetic data"
@echo " run - Run KPI job for today"
@echo " test - Test the installation"
@echo " clean - Clean up generated files"
install:
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -e .
seed:
venv/bin/python kpi_job/seed.py
run:
venv/bin/python -m kpi_job.main --date $(shell date +%Y-%m-%d) --verbose
test:
venv/bin/python -c "import kpi_job.main; print('✅ Import successful')"
clean:
rm -rf venv/ artifacts/ data/*.db __pycache__/ kpi_job/__pycache__/