aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/keyboard.py
diff options
context:
space:
mode:
authorQMK Bot <[email protected]>2022-03-30 20:55:16 +0000
committerQMK Bot <[email protected]>2022-03-30 20:55:16 +0000
commitd75ae52fe6b61e66387d7073404ca52c62e9c33e (patch)
treed6df4537471b2d53135aa15aa6c9e660619a16ff /lib/python/qmk/keyboard.py
parent38209c5c861900e94ad2a0acdc11ea50214f0400 (diff)
parent64974a7f8fbda680ea307a9a4c2cb1cfbe92c01e (diff)
downloadqmk_firmware-d75ae52fe6b61e66387d7073404ca52c62e9c33e.tar.gz
qmk_firmware-d75ae52fe6b61e66387d7073404ca52c62e9c33e.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/keyboard.py')
-rw-r--r--lib/python/qmk/keyboard.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/python/qmk/keyboard.py b/lib/python/qmk/keyboard.py
index 7cd0a1d5a7..e69f63aebe 100644
--- a/lib/python/qmk/keyboard.py
+++ b/lib/python/qmk/keyboard.py
@@ -218,7 +218,7 @@ def render_key_rect(textpad, x, y, w, h, label, style):
label_blank = ' ' * label_len
label_border = box_chars['h'] * label_len
- label_middle = label + ' '*label_leftover # noqa: yapf insists there be no whitespace around *
+ label_middle = label + ' ' * label_leftover
top_line = array('u', box_chars['tl'] + label_border + box_chars['tr'])
lab_line = array('u', box_chars['v'] + label_middle + box_chars['v'])
@@ -245,10 +245,10 @@ def render_key_isoenter(textpad, x, y, w, h, label, style):
if len(label) > label_len:
label = label[:label_len]
- label_blank = ' ' * (label_len-1) # noqa: yapf insists there be no whitespace around - and *
+ label_blank = ' ' * (label_len - 1)
label_border_top = box_chars['h'] * label_len
- label_border_bottom = box_chars['h'] * (label_len-1) # noqa
- label_middle = label + ' '*label_leftover # noqa
+ label_border_bottom = box_chars['h'] * (label_len - 1)
+ label_middle = label + ' ' * label_leftover
top_line = array('u', box_chars['tl'] + label_border_top + box_chars['tr'])
lab_line = array('u', box_chars['v'] + label_middle + box_chars['v'])
@@ -277,10 +277,10 @@ def render_key_baenter(textpad, x, y, w, h, label, style):
if len(label) > label_len:
label = label[:label_len]
- label_blank = ' ' * (label_len-3) # noqa: yapf insists there be no whitespace around - and *
- label_border_top = box_chars['h'] * (label_len-3) # noqa
+ label_blank = ' ' * (label_len - 3)
+ label_border_top = box_chars['h'] * (label_len - 3)
label_border_bottom = box_chars['h'] * label_len
- label_middle = label + ' '*label_leftover # noqa
+ label_middle = label + ' ' * label_leftover
top_line = array('u', box_chars['tl'] + label_border_top + box_chars['tr'])
mid_line = array('u', box_chars['v'] + label_blank + box_chars['v'])