From 305b13448f958ffa385dfe51fd49a7eda4804466 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:10:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- warg/colors/label_colors.py | 4 +--- warg/data_structures/ordered_set.py | 6 ++---- warg/os_utilities/platform_selection.py | 2 +- warg/text.py | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/warg/colors/label_colors.py b/warg/colors/label_colors.py index 85f27d0..cb6d9e4 100644 --- a/warg/colors/label_colors.py +++ b/warg/colors/label_colors.py @@ -14,9 +14,7 @@ from warg import TripleNumber -def compute_color_for_labels( - label: int, palette: TripleNumber = (2**11 - 1, 2**15 - 1, 2**20 - 1) -) -> Tuple: +def compute_color_for_labels(label: int, palette: TripleNumber = (2**11 - 1, 2**15 - 1, 2**20 - 1)) -> Tuple: """ Simple function that adds fixed color depending on the class""" return (*[int(((label > 0) * p * (label**2 - label + 1)) % 255) for p in palette],) diff --git a/warg/data_structures/ordered_set.py b/warg/data_structures/ordered_set.py index 3fbf470..fe89f25 100644 --- a/warg/data_structures/ordered_set.py +++ b/warg/data_structures/ordered_set.py @@ -91,12 +91,10 @@ def __len__(self): return len(self.items) @overload - def __getitem__(self, index: Sequence[int]) -> List[T]: - ... + def __getitem__(self, index: Sequence[int]) -> List[T]: ... @overload - def __getitem__(self, index: slice) -> "OrderedSet[T]": - ... + def __getitem__(self, index: slice) -> "OrderedSet[T]": ... def __getitem__(self, index: int) -> T: """ diff --git a/warg/os_utilities/platform_selection.py b/warg/os_utilities/platform_selection.py index 02dab4d..a2afb71 100644 --- a/warg/os_utilities/platform_selection.py +++ b/warg/os_utilities/platform_selection.py @@ -107,7 +107,7 @@ def get_backend_module(project_name: str, backend_name: str = sys.platform) -> M "appindicator", "gtk", "xorg", - "gtk_dbus" + "gtk_dbus", # "unity", "kde", "gnome", "fallback", ] diff --git a/warg/text.py b/warg/text.py index c11c282..48ca3da 100644 --- a/warg/text.py +++ b/warg/text.py @@ -14,7 +14,7 @@ "ize": "ise", "yze": "yse", "iza": "isa", - "aluminum": "aluminium" + "aluminum": "aluminium", # 'se': 'ce', # 'og': 'ogue', }