summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-16 22:24:55 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-16 22:24:55 +0200
commit6985b205d60dc78d53b0d30ab0a94d203e06aae8 (patch)
tree201850f98c9312d504443c9cb897a612b90e4fc3 /Makefile
downloadsignal-event-notifier-6985b205d60dc78d53b0d30ab0a94d203e06aae8.tar.gz
signal-event-notifier-6985b205d60dc78d53b0d30ab0a94d203e06aae8.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
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