From 6985b205d60dc78d53b0d30ab0a94d203e06aae8 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 16 Jul 2023 22:24:55 +0200 Subject: initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3