aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f84be4f4e3df3f7152addc39b214ad2271907499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PYTHONFILES = $(shell find -name "*.py" -not -path "./.git/*")

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

check-pylint:
	pylint -j 0 $(PYTHONFILES) || ./tools/check-pylint $$?

format:
	yapf -i $(PYTHONFILES)

check-format:
	yapf -d $(PYTHONFILES)

check-mypy:
	mypy --ignore-missing-imports $(PYTHONFILES)

check: check-pylint check-format check-mypy