From 87125abeee024a0ad1ab30d157b41c34fb578490 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 4 Jul 2022 13:37:45 +0200 Subject: add python development tooling --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bc47e64 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +SRC=$(wildcard *.py) + +.PHONY: check +check: check-pylint check-format check-mypy + +.PHONY: check-pylint +check-pylint: + pylint --rcfile=.pylint.rc -j 0 $(SRC) || ./tools/check-pylint $$? + +.PHONY: check-format +check-format: + yapf -d $(SRC) + +.PHONY: check-format +check-mypy: + mypy $(SRC) + +.PHONY: format +format: + yapf -i $(SRC) + +.PHONY: test +test: + python3 test.py -- cgit v1.2.3