run black on generated hooks

This commit is contained in:
Damien Elmes 2020-01-13 17:55:58 +10:00
parent 402a594c7b
commit f379167648
2 changed files with 4 additions and 2 deletions

View File

@ -27,8 +27,9 @@ PROTODEPS := $(wildcard ../proto/*.proto)
protoc --proto_path=../proto --python_out=anki --mypy_out=anki $(PROTODEPS)
@touch $@
.build/hooks: tools/genhooks.py
.build/hooks: tools/genhooks.py anki/hooks_gen.py
python tools/genhooks.py
black anki/hooks.py
@touch $@
BUILD_STEPS := .build/run-deps .build/dev-deps .build/py-proto anki/buildinfo.py .build/hooks

View File

@ -35,8 +35,9 @@ TSDEPS := $(wildcard ts/src/*.ts)
(cd ts && npm i && npm run build)
@touch $@
.build/hooks: tools/genhooks.py
.build/hooks: tools/genhooks.py ../pylib/anki/hooks_gen.py
python tools/genhooks.py
black aqt/gui_hooks.py
@touch $@
BUILD_STEPS := .build/run-deps .build/dev-deps .build/js .build/ui aqt/buildinfo.py .build/hooks .build/i18n