blob: 8947803c5af7ff537c15c7c3d36964644b787e62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)
|