aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile
blob: 2d9a39ab7ed7a36b27e44d2c4b07302b7c8f7db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.PHONY: check format check-format check-pylint

PYTHONFILES := $(wildcard *.py)

check: check-pylint check-format check-mypy

format:
	yapf -i $(PYTHONFILES)

check-format:
	yapf -d $(PYTHONFILES)

check-pylint:
	pylint --generated-members=cv2.* --rcfile=.pylint.rc -j 0 $(PYTHONFILES) || ./tools/check-pylint $$?

check-mypy:
	MYPYPATH=scripts mypy --namespace-packages --explicit-package-bases $(PYTHONFILES)