blob: ac1418a549fa4bafe959314f69e4c3108deddd2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
PYTHONFILES = $(shell find -name "*.py" -not -path "./.git/*")
.PHONY: format check check-format check-pylint check-mypy test
format:
yapf -i $(PYTHONFILES)
check-pylint:
pylint -j 0 $(PYTHONFILES) || ./tools/check-pylint $$?
check-format:
yapf -d $(PYTHONFILES)
check-mypy:
mypy --ignore-missing-imports $(PYTHONFILES)
check: check-pylint check-format check-mypy
test:
python3 test.py
|