-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 971 Bytes
/
Makefile
File metadata and controls
41 lines (29 loc) · 971 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
40
41
# Backend dev commands. Run `make dev` after copying .env.example to .env.
.PHONY: dev db seed test eval lint migrate enrich enrich-streets export-address-map
.env:
cp .env.example .env
@echo ">>> Created .env template. Fill .env values and rerun 'make dev'."
@false
dev: .env
docker compose up --build
db:
docker compose up -d db
seed:
@echo "No seed script is provided. Use preprocess-data load instead:"
@echo " DATABASE_URL='postgresql+psycopg://utd:utdpass@127.0.0.1:5433/utd_data' \\"
@echo " python util/preprocess-data.py --start-at load --stop-after load --input <path-to-parsed_data.json>"
@false
test:
pytest
eval:
python util/vlm_eval.py --disaster-id hurricane-florence
lint:
ruff check . && black --check .
migrate:
python -m util.migrate
enrich:
python -m util.enrich_addresses --limit 1000
enrich-streets:
python -m util.enrich_addresses --nominatim --limit 500
export-address-map:
python -m util.export_address_map --pretty