-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) 路 737 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (17 loc) 路 737 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
.PHONY: test fluff data_build install_dev data_build make_request run_api
mr = curl -s -X POST -H "Content-Type: application/json" \
-d '[{"group_id": "馃", "event_value": 13}, {"group_id": "馃悋", "event_value": 8}, {"group_id": "馃惏", "event_value": 2}, {"group_id": "馃惏", "event_value": 5}, {"group_id": "馃", "event_value": 3}, {"group_id": "馃悋", "event_value": 23}, {"group_id": "馃悋", "event_value": 1}, {"group_id": "馃", "event_value": 17}, {"group_id": "馃惏", "event_value": 5}]' http://localhost:8000/analyse_data/
test:
pytest
fluff:
sqlfluff fix
install_dev:
poetry install --with dev
data_build:
dbt build
run_api:
fastapi dev duckapi/api.py
make_request:
${mr}
make_request_pretty:
${mr} | jq