-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
63 lines (51 loc) · 2.27 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Makefile
# The master commands that update our coronavirus tracker's data supply
# Import global variables
include ./utils/variables.make
all: scrape \
clean_notebooks
scrape: ## Verify that our notebooks can be parsed and run. Example: make scrape
$(call banner,🔪 Scraping data 🔪)
$(call make,bed-surges/Makefile)
$(call make,cases-deaths-demographics/Makefile)
$(call make,cases-deaths-tests/Makefile)
$(call make,cdc-community-levels/Makefile)
$(call make,demographics-age/Makefile)
$(call make,demographics-race-by-county/Makefile)
$(call make,demographics-race-statewide/Makefile)
$(call make,federal-prisons/Makefile)
$(call make,hopkins/Makefile)
$(call make,hospital-capacity/Makefile)
$(call make,hospital-locations/Makefile)
$(call make,hospital-patients/Makefile)
$(call make,ice-detainees/Makefile)
$(call make,local-adult-detention-facilities/Makefile)
$(call make,local-juvenile-detention-facilities/Makefile)
$(call make,places/Makefile)
$(call make,respiratory-virus-deaths/Makefile)
$(call make,school-reopenings/Makefile)
$(call make,skilled-nursing-facilities/Makefile)
$(call make,state-prisons/Makefile)
$(call make,vaccine-doses-on-hand/Makefile)
$(call make,vaccine-hpi/Makefile)
$(call make,vaccine-progress/Makefile)
$(call make,vaccine-shipped-delivered/Makefile)
$(call make,vaccine-zip-codes/Makefile)
$(call make,vaccine-demographics-by-county/Makefile)
$(call make,vaccine-demographics-statewide/Makefile)
$(call make,variant-proportions-states/Makefile)
$(call make,variant-toplines-ca/Makefile)
$(call make,vaccine-breakthrough-cases/Makefile)
clean_notebooks: ## Remove all temporary notebook outputs created by the our commands. Example: make clean_notebooks
@find . -type f -name '*-output.ipynb' -delete
lint_notebooks: ## Verify that our notebooks can be parsed and run. Example: make lint_notebooks
@pipenv run jupyter nbconvert ./**/*.ipynb --to=html --stdout > /dev/null
lint_python:
@pipenv run flake8 ./
help: ## Show this help. Example: make help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
# Mark all the command that don't have a target
.PHONY: all \
scrape \
lint_notebooks \
help