From ac5b0d8a9a90c202eee3637fe9421db70c78be12 Mon Sep 17 00:00:00 2001 From: elpekenin Date: Sun, 18 Feb 2024 10:02:50 +0100 Subject: [PATCH] Lint --- lib/python/qmk/cli/painter/make_font.py | 1 - lib/python/qmk/painter_qgf.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python/qmk/cli/painter/make_font.py b/lib/python/qmk/cli/painter/make_font.py index 4f4933bd7cb..ae59ed818cf 100644 --- a/lib/python/qmk/cli/painter/make_font.py +++ b/lib/python/qmk/cli/painter/make_font.py @@ -95,7 +95,6 @@ def painter_make_font_image(cli): print(f"Writing {cli.args.output} ...") - @cli.argument('-i', '--input', help='Specify input graphic file.') @cli.argument('-o', '--output', default='', help='Specify output directory. Defaults to same directory as input.') @cli.argument('-n', '--no-ascii', arg_only=True, action='store_true', help='Disables output of the full ASCII character set (0x20..0x7E), exporting only the glyphs specified.') diff --git a/lib/python/qmk/painter_qgf.py b/lib/python/qmk/painter_qgf.py index cc4697f1c62..3d2a14f31c9 100644 --- a/lib/python/qmk/painter_qgf.py +++ b/lib/python/qmk/painter_qgf.py @@ -17,8 +17,9 @@ def o24(i): return o16(i & 0xFFFF) + o8((i & 0xFF0000) >> 16) -# Helper to convert from RGB888 to the QMK "dialect" of HSV888 def rgb888_to_qmk_hsv888(e): + """Helper to convert from RGB888 to the QMK "dialect" of HSV888 + """ hsv = rgb_to_hsv(e[0] / 255.0, e[1] / 255.0, e[2] / 255.0) return (int(hsv[0] * 255.0), int(hsv[1] * 255.0), int(hsv[2] * 255.0))