From 2543db86014ca3210eb3af72ae4ea34982b5c83c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 27 Jan 2025 15:56:31 +0100 Subject: add common python Makefile --- 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..326ceac --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +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) -- cgit v1.2.3