aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: bc47e64ef0c5dc63bf93e4e76c4dd846f6b9e8f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SRC=$(wildcard *.py)

.PHONY: check
check: check-pylint check-format check-mypy

.PHONY: check-pylint
check-pylint:
	pylint --rcfile=.pylint.rc -j 0 $(SRC) || ./tools/check-pylint $$?

.PHONY: check-format
check-format:
	yapf -d $(SRC)

.PHONY: check-format
check-mypy:
	mypy $(SRC)

.PHONY: format
format:
	yapf -i $(SRC)

.PHONY: test
test:
	python3 test.py