From dd98378f2e81a0d224a4f4cb4823e5934506a4a8 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Tue, 19 Jul 2022 15:33:33 +0800 Subject: [PATCH] style: run pre-commit hooks Signed-off-by: Xuehai Pan --- nvitop/gui/library/history.py | 10 +++++----- nvitop/gui/library/keybinding.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nvitop/gui/library/history.py b/nvitop/gui/library/history.py index 057624c..927932d 100644 --- a/nvitop/gui/library/history.py +++ b/nvitop/gui/library/history.py @@ -24,11 +24,11 @@ VALUE2SYMBOL_UP = { (4, 0): '⡇', (4, 1): '⣇', (4, 2): '⣧', (4, 3): '⣷', (4, 4): '⣿', } VALUE2SYMBOL_DOWN = { - (0, 0): " ", (0, 1): "⠈", (0, 2): "⠘", (0, 3): "⠸", (0, 4): "⢸", - (1, 0): "⠁", (1, 1): "⠉", (1, 2): "⠙", (1, 3): "⠹", (1, 4): "⢹", - (2, 0): "⠃", (2, 1): "⠋", (2, 2): "⠛", (2, 3): "⠻", (2, 4): "⢻", - (3, 0): "⠇", (3, 1): "⠏", (3, 2): "⠟", (3, 3): "⠿", (3, 4): "⢿", - (4, 0): "⡇", (4, 1): "⡏", (4, 2): "⡟", (4, 3): "⡿", (4, 4): "⣿" + (0, 0): ' ', (0, 1): '⠈', (0, 2): '⠘', (0, 3): '⠸', (0, 4): '⢸', + (1, 0): '⠁', (1, 1): '⠉', (1, 2): '⠙', (1, 3): '⠹', (1, 4): '⢹', + (2, 0): '⠃', (2, 1): '⠋', (2, 2): '⠛', (2, 3): '⠻', (2, 4): '⢻', + (3, 0): '⠇', (3, 1): '⠏', (3, 2): '⠟', (3, 3): '⠿', (3, 4): '⢿', + (4, 0): '⡇', (4, 1): '⡏', (4, 2): '⡟', (4, 3): '⡿', (4, 4): '⣿' } # fmt: on SYMBOL2VALUE_UP = {v: k for k, v in VALUE2SYMBOL_UP.items()} diff --git a/nvitop/gui/library/keybinding.py b/nvitop/gui/library/keybinding.py index 3d78bca..7bd7e27 100644 --- a/nvitop/gui/library/keybinding.py +++ b/nvitop/gui/library/keybinding.py @@ -257,7 +257,7 @@ class KeyMaps(dict): pointer = pointer[key] except KeyError as e: raise KeyError( - "Tried to copy the keybinding `%s'," " but it was not found." % source + "Tried to copy the keybinding `%s', but it was not found." % source ) from e self.bind(context, target, copy.deepcopy(pointer))