-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
63 lines (50 loc) · 1.09 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
.PHONY: default
default:
.PHONY: format
format: black isort protolint-fix
.PHONY: lint
lint: flake8 isort-check black-check pyright protolint-check
.PHONY: test
test:
pytest .
.PHONY: test-update-snapshots
test-update-snapshots:
pytest . --snapshot-update
.PHONY: black
black:
black -l 100 .
.PHONY: black-check
black-check:
black -l 100 --check .
.PHONY: isort
isort:
isort --force-sort-within-sections --profile=black .
.PHONY: isort-check
isort-check:
isort --force-sort-within-sections --profile=black --check .
.PHONY: flake8
flake8:
flake8
.PHONY: pyright
pyright: export MYPYPATH=stubs
pyright:
pyright clinvar_this clinvar_api clinvar_data tests
.PHONY: protolint-fix
protolint-fix:
protolint lint -fix .
.PHONY: protolint-check
protolint-check:
protolint lint .
# Re-run protoc.
.PHONY: protoc-run
protoc-run:
mkdir -p clinvar_data/pbs/clinvar_this
touch clinvar_data/pbs/__init__.py clinvar_data/pbs/clinvar_this/__init__.py
rm -f \
clinvar_data/*_pb2.py \
clinvar_data/*.pyi
protoc \
-Iprotos \
--python_out=. \
--mypy_out=. \
protos/clinvar_data/pbs/*.proto