diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-01-28 16:03:16 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-01-28 16:03:16 +0100 |
| commit | 96373c6d93f0c310f8b777494c5a40c27fd78a0b (patch) | |
| tree | bfb9825ac80cd2331ede1adc21f84230813a1f22 /Makefile | |
| parent | a584e47488212c61defe9e266d23eb036c0148e4 (diff) | |
| download | scratch-gallery-96373c6d93f0c310f8b777494c5a40c27fd78a0b.tar.gz scratch-gallery-96373c6d93f0c310f8b777494c5a40c27fd78a0b.zip | |
initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
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) |
