-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 777 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
MYPY_OPTS :=
MYPY_OPTS += --explicit-package-bases
MYPY_OPTS += --follow-imports=silent
MYPY_OPTS += --ignore-missing-imports
MYPY_OPTS += --namespace-packages
MYPY_OPTS += --no-strict-optional
MYPY_OPTS += --pretty
MYPY_OPTS += --strict
MYPY_OPTS += --strict-equality
MYPY_OPTS += --warn-redundant-casts
MYPY_OPTS += --warn-return-any
MYPY_OPTS += --warn-unreachable
.PHONY: *
help: ## print this help
@echo "usage: make COMMAND"
@echo
@echo "Commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile \
| awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}'
require: ## install dependencies (Python)
pip install -r client-py/requirements.txt
lint: ## lint (Python)
mypy $(MYPY_OPTS) $$(find -P -name "*.py")
clean: ## remove tmp files
rm -rf .mypy_cache