.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)