aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-12-14 17:01:38 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-12-14 17:01:38 +0100
commit362a954add901904cf1234b96d84debb9262c556 (patch)
treedc60f08c6d045dcc8fc677595c277042bef6b60e /Makefile
downloadspgen-362a954add901904cf1234b96d84debb9262c556.tar.gz
spgen-362a954add901904cf1234b96d84debb9262c556.zip
add initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f84be4f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+PYTHONFILES = $(shell find -name "*.py" -not -path "./.git/*")
+
+.PHONY: pylint format check check-format check-pylint check-mypy
+
+check-pylint:
+ pylint -j 0 $(PYTHONFILES) || ./tools/check-pylint $$?
+
+format:
+ yapf -i $(PYTHONFILES)
+
+check-format:
+ yapf -d $(PYTHONFILES)
+
+check-mypy:
+ mypy --ignore-missing-imports $(PYTHONFILES)
+
+check: check-pylint check-format check-mypy