forked from CovidTrackerFr/vitemadose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (41 loc) · 1.84 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
.DEFAULT_GOAL := help
URL =
.PHONY: help test install
help: ## provides cli help for this makefile (default) 📖
@grep -E '^[a-zA-Z_0-9-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: ## sets up package and its dependencies
scripts/install
test: ## runs tests
scripts/test
coverage: ## reports test coverage (automatically run by `test`)
scripts/coverage
scrape: ## runs the full scraping experience
scripts/scrape $(URL)
stats: ## Run the statistic scripts
venv/bin/python -m stats_generation.stats_available_centers
venv/bin/python -m stats_generation.by_vaccine
doctoscrap: ## Scrap all doctolib centers, output : data/output/doctolib-centers.json
venv/bin/python -m scraper.doctolib.doctolib_center_scrap
keldocscrap: ## Scrap all doctolib centers, output : data/output/keldoc-centers.json
venv/bin/python -m scraper.keldoc.keldoc_center_scrap
maiiascrap: ## Retrieve maiia centers from API
venv/bin/python -m scraper.maiia.maiia_center_scrap
mesoignerscrap: ## Scrap all mesoigner centers, output : data/output/mesoigner_centers.json
venv/bin/python -m scraper.mesoigner.mesoigner_center_scrap
bimedocscrap: ## Scrap all bimedoc centers, output : data/output/bimedoc_centers.json
venv/bin/python -m scraper.bimedoc.bimedoc_center_scrap
valwinscrap: ## Scrap all valwin centers, output : data/output/valwin_centers.json
venv/bin/python -m scraper.valwin.valwin_center_scrap
blocklistmanager: ## Blocklist command line manager
venv/bin/python -m management_scripts.manage_blocklist
lint: install
venv/bin/pip install black
venv/bin/black $$(git ls-files | grep .py$$)
lint-check: install
venv/bin/pip install black
venv/bin/black --check $$(git ls-files | grep .py$$)
contributors: install
scripts/contributors
clean:
rm -rf data/output
git checkout data/output