aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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