From 1cd784ca78da113c0be3e66c3eae826cdbcc5857 Mon Sep 17 00:00:00 2001 From: Maximilian Engl Date: Mon, 26 Feb 2024 18:47:51 +0100 Subject: [PATCH] style: exec black --- keymap_drawer/draw/combo.py | 5 ++++- keymap_drawer/keymap.py | 1 + streamlit/app.py | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/keymap_drawer/draw/combo.py b/keymap_drawer/draw/combo.py index 292229f..300491c 100644 --- a/keymap_drawer/draw/combo.py +++ b/keymap_drawer/draw/combo.py @@ -1,4 +1,5 @@ """Module containing class and methods to draw combo representations.""" + from io import StringIO from math import copysign from typing import Sequence @@ -136,7 +137,9 @@ def print_combo(self, combo: ComboSpec, combo_ind: int) -> Point: classes=["combo", combo.type, combo.key.type], ) - self._draw_legend(p, self._split_text(combo.key.tap), classes=["combo", combo.type, combo.key.type], legend_type="tap") + self._draw_legend( + p, self._split_text(combo.key.tap), classes=["combo", combo.type, combo.key.type], legend_type="tap" + ) self._draw_legend( p + Point(0, self.cfg.combo_h / 2 - self.cfg.small_pad), [combo.key.hold], diff --git a/keymap_drawer/keymap.py b/keymap_drawer/keymap.py index aea871c..4d79fed 100644 --- a/keymap_drawer/keymap.py +++ b/keymap_drawer/keymap.py @@ -2,6 +2,7 @@ Module with classes that define the keymap representation, with multiple layers containing key and combo specifications, paired with the physical keyboard layout. """ + from collections import defaultdict from functools import partial from itertools import chain diff --git a/streamlit/app.py b/streamlit/app.py index c7fe80c..23f8ab9 100644 --- a/streamlit/app.py +++ b/streamlit/app.py @@ -1,4 +1,5 @@ """Redirect users to the canonical URL pointing to the new app.""" + import streamlit as st APP_URL = "https://caksoylar.github.io/keymap-drawer"