diff options
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) |
