mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 10:39:09 +00:00
fix the makefile snippet so flake8 and yapf don't fight (#12849)
This commit is contained in:
parent
30aae6298b
commit
5c924efa04
1 changed files with 3 additions and 3 deletions
|
@ -57,6 +57,7 @@ def multibuild(cli):
|
||||||
with open(makefile, "w") as f:
|
with open(makefile, "w") as f:
|
||||||
for keyboard_name in keyboard_list:
|
for keyboard_name in keyboard_list:
|
||||||
keyboard_safe = keyboard_name.replace('/', '_')
|
keyboard_safe = keyboard_name.replace('/', '_')
|
||||||
|
# yapf: disable
|
||||||
f.write(
|
f.write(
|
||||||
f"""\
|
f"""\
|
||||||
all: {keyboard_safe}_binary
|
all: {keyboard_safe}_binary
|
||||||
|
@ -70,9 +71,8 @@ all: {keyboard_safe}_binary
|
||||||
|| printf "Build %-64s \e[1;32m[OK]\e[0m\\n" "{keyboard_name}:default"
|
|| printf "Build %-64s \e[1;32m[OK]\e[0m\\n" "{keyboard_name}:default"
|
||||||
@rm -f "{QMK_FIRMWARE}/.build/build.log.{keyboard_safe}" || true
|
@rm -f "{QMK_FIRMWARE}/.build/build.log.{keyboard_safe}" || true
|
||||||
|
|
||||||
"""
|
"""# noqa
|
||||||
|
|
||||||
# noqa: yapf should not care about the formatting of the Makefile
|
|
||||||
)
|
)
|
||||||
|
# yapf: enable
|
||||||
|
|
||||||
cli.run([make_cmd, '-j', str(cli.args.parallel), '-f', makefile, 'all'], capture_output=False, text=False)
|
cli.run([make_cmd, '-j', str(cli.args.parallel), '-f', makefile, 'all'], capture_output=False, text=False)
|
||||||
|
|
Loading…
Reference in a new issue