aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 326ceac11b1c3e60f621190e2e89ed1c9d4a4e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)