-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
45 lines (31 loc) · 951 Bytes
/
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
.PHONY: README.md tests venv
requirements.txt: requirements.in
pip-compile requirements.in
venv:
python -m venv venv
venv/bin/pip install -r requirements.txt
inspections-init:
python scripts/00-fetch-inspection-list.py
inspections-refresh:
python scripts/01-refresh-inspection-list.py
inspections-download:
python scripts/02-download-inspection-pdfs.py
inspections-parse:
python scripts/03-parse-inspection-pdfs.py
inspections-combine:
python scripts/05-combine-inspection-data.py
inspections: inspections-init inspections-refresh inspections-download inspections-parse inspections-combine
# Intentionally a separate step, not in `make inspections`
upload:
python scripts/04-upload-inspection-pdfs.py
format:
black scripts tests
isort scripts tests
lint:
black --check scripts tests
isort --check scripts tests
flake8 scripts tests
mypy:
mypy scripts tests --ignore-missing-imports --strict
tests:
pytest tests -sv --cov