diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ac1418a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +PYTHONFILES = $(shell find -name "*.py" -not -path "./.git/*") + +.PHONY: format check check-format check-pylint check-mypy test + +format: + yapf -i $(PYTHONFILES) + +check-pylint: + pylint -j 0 $(PYTHONFILES) || ./tools/check-pylint $$? + +check-format: + yapf -d $(PYTHONFILES) + +check-mypy: + mypy --ignore-missing-imports $(PYTHONFILES) + +check: check-pylint check-format check-mypy + +test: + python3 test.py |
