aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-01-28 16:03:16 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2026-01-28 16:03:16 +0100
commit96373c6d93f0c310f8b777494c5a40c27fd78a0b (patch)
treebfb9825ac80cd2331ede1adc21f84230813a1f22 /Makefile
parenta584e47488212c61defe9e266d23eb036c0148e4 (diff)
downloadscratch-gallery-96373c6d93f0c310f8b777494c5a40c27fd78a0b.tar.gz
scratch-gallery-96373c6d93f0c310f8b777494c5a40c27fd78a0b.zip
initial commit
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..8947803
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+SRC=$(wildcard *.py)
+
+.PHONY: all clean check check-pylint check-format check-mypy
+all: build/index.html
+
+build/index.html: templates/$(wildcard index.*) generate-gallery.py turbowarp-packager-settings.json
+ ./generate-gallery.py
+
+clean:
+ rm -rf build/
+
+check: check-pylint check-format check-mypy
+
+check-pylint:
+ pylint --rcfile=.pylint.rc -j 0 $(SRC) || ./tools/check-pylint $$?
+
+check-format:
+ yapf -d $(SRC)
+
+check-mypy:
+ mypy $(SRC)
+
+format:
+ yapf -i $(SRC)