aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2022-07-04 13:37:45 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2022-07-04 13:37:45 +0200
commit87125abeee024a0ad1ab30d157b41c34fb578490 (patch)
tree63cf2379d8f1106e2dc1447022015f49610648c5 /Makefile
parent58634375c9d1f8f73404ae21c63b60b05413bd5d (diff)
downloadgeldschieberbot-87125abeee024a0ad1ab30d157b41c34fb578490.tar.gz
geldschieberbot-87125abeee024a0ad1ab30d157b41c34fb578490.zip
add python development tooling
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
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