Skip to content

Commit

Permalink
fix the makefile snippet so flake8 and yapf don't fight (qmk#12849)
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed May 9, 2021
1 parent 30aae62 commit 5c924ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python/qmk/cli/multibuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def multibuild(cli):
with open(makefile, "w") as f:
for keyboard_name in keyboard_list:
keyboard_safe = keyboard_name.replace('/', '_')
# yapf: disable
f.write(
f"""\
all: {keyboard_safe}_binary
Expand All @@ -70,9 +71,8 @@ def multibuild(cli):
|| printf "Build %-64s \e[1;32m[OK]\e[0m\\n" "{keyboard_name}:default"
@rm -f "{QMK_FIRMWARE}/.build/build.log.{keyboard_safe}" || true
"""

# noqa: yapf should not care about the formatting of the Makefile
"""# noqa
)
# yapf: enable

cli.run([make_cmd, '-j', str(cli.args.parallel), '-f', makefile, 'all'], capture_output=False, text=False)

0 comments on commit 5c924ef

Please sign in to comment.