From 8303ae05595a147c3a1efd9b302631f98b8b1691 Mon Sep 17 00:00:00 2001 From: Fabien LOISON Date: Tue, 27 Feb 2024 12:44:34 +0100 Subject: [PATCH] misc(lint): Fixed lint according to the latest Black version --- rivalcfg/cli.py | 1 - rivalcfg/color_helpers.py | 1 - rivalcfg/devices/__init__.py | 1 - rivalcfg/handlers/buttons/buttons.py | 1 - rivalcfg/handlers/buttons/layout_multimedia.py | 1 - rivalcfg/handlers/multidpi_range.py | 1 - rivalcfg/handlers/range.py | 1 - rivalcfg/handlers/reactive_rgbcolor.py | 1 - rivalcfg/handlers/rgbcolor.py | 1 - rivalcfg/handlers/rgbgradient.py | 1 - rivalcfg/handlers/rgbgradientv2.py | 1 - rivalcfg/helpers.py | 1 - rivalcfg/mouse.py | 1 - rivalcfg/usbhid.py | 2 -- 14 files changed, 15 deletions(-) diff --git a/rivalcfg/cli.py b/rivalcfg/cli.py index a428cc00..c610e2d4 100644 --- a/rivalcfg/cli.py +++ b/rivalcfg/cli.py @@ -2,7 +2,6 @@ This module generates rivalcfg's CLI. """ - import os import sys import types diff --git a/rivalcfg/color_helpers.py b/rivalcfg/color_helpers.py index ca45254b..d77ffba1 100644 --- a/rivalcfg/color_helpers.py +++ b/rivalcfg/color_helpers.py @@ -2,7 +2,6 @@ This module contains varous helper functions related to color. """ - import re diff --git a/rivalcfg/devices/__init__.py b/rivalcfg/devices/__init__.py index b4c15836..65bc17de 100644 --- a/rivalcfg/devices/__init__.py +++ b/rivalcfg/devices/__init__.py @@ -141,7 +141,6 @@ } """ - import os from .. import usbhid diff --git a/rivalcfg/handlers/buttons/buttons.py b/rivalcfg/handlers/buttons/buttons.py index 94419a4b..48dee6eb 100644 --- a/rivalcfg/handlers/buttons/buttons.py +++ b/rivalcfg/handlers/buttons/buttons.py @@ -163,7 +163,6 @@ --------- """ - import argparse from ...helpers import parse_param_string, REGEXP_PARAM_STRING diff --git a/rivalcfg/handlers/buttons/layout_multimedia.py b/rivalcfg/handlers/buttons/layout_multimedia.py index e08ae121..93a63689 100644 --- a/rivalcfg/handlers/buttons/layout_multimedia.py +++ b/rivalcfg/handlers/buttons/layout_multimedia.py @@ -2,7 +2,6 @@ This file contains the layout for multimedia keys. """ - #: The multimedia keys layout layout = { "Mute": 0xE2, diff --git a/rivalcfg/handlers/multidpi_range.py b/rivalcfg/handlers/multidpi_range.py index dafd4654..e9c7ca5e 100644 --- a/rivalcfg/handlers/multidpi_range.py +++ b/rivalcfg/handlers/multidpi_range.py @@ -75,7 +75,6 @@ --------- """ - import re import argparse diff --git a/rivalcfg/handlers/range.py b/rivalcfg/handlers/range.py index fd2b60fe..be35624c 100644 --- a/rivalcfg/handlers/range.py +++ b/rivalcfg/handlers/range.py @@ -67,7 +67,6 @@ --------- """ - from ..helpers import uint_to_little_endian_bytearray diff --git a/rivalcfg/handlers/reactive_rgbcolor.py b/rivalcfg/handlers/reactive_rgbcolor.py index 579f1467..5bdec5ea 100644 --- a/rivalcfg/handlers/reactive_rgbcolor.py +++ b/rivalcfg/handlers/reactive_rgbcolor.py @@ -86,7 +86,6 @@ --------- """ - import argparse from ..color_helpers import is_color, parse_color_string diff --git a/rivalcfg/handlers/rgbcolor.py b/rivalcfg/handlers/rgbcolor.py index d27ff755..259c5f62 100644 --- a/rivalcfg/handlers/rgbcolor.py +++ b/rivalcfg/handlers/rgbcolor.py @@ -75,7 +75,6 @@ --------- """ - import argparse from ..color_helpers import is_color, parse_color_string diff --git a/rivalcfg/handlers/rgbgradient.py b/rivalcfg/handlers/rgbgradient.py index e0e968d0..920507b5 100644 --- a/rivalcfg/handlers/rgbgradient.py +++ b/rivalcfg/handlers/rgbgradient.py @@ -104,7 +104,6 @@ --------- """ - import argparse from ..helpers import uint_to_little_endian_bytearray, merge_bytes diff --git a/rivalcfg/handlers/rgbgradientv2.py b/rivalcfg/handlers/rgbgradientv2.py index f96cf1a9..2e7d5471 100644 --- a/rivalcfg/handlers/rgbgradientv2.py +++ b/rivalcfg/handlers/rgbgradientv2.py @@ -100,7 +100,6 @@ --------- """ - from ..helpers import uint_to_little_endian_bytearray, merge_bytes from ..helpers import bytes_to_high_low_nibbles, nibbles_to_byte from ..color_helpers import is_color diff --git a/rivalcfg/helpers.py b/rivalcfg/helpers.py index 1509e952..2c312ec9 100644 --- a/rivalcfg/helpers.py +++ b/rivalcfg/helpers.py @@ -2,7 +2,6 @@ This module contains varous helper functions. """ - import re diff --git a/rivalcfg/mouse.py b/rivalcfg/mouse.py index f3a396b2..64904782 100644 --- a/rivalcfg/mouse.py +++ b/rivalcfg/mouse.py @@ -39,7 +39,6 @@ def get_mouse(vendor_id=0x1038, product_id=None): class Mouse: - """Generic class to handle any supported mouse. .. NOTE:: diff --git a/rivalcfg/usbhid.py b/rivalcfg/usbhid.py index 29205f1a..fd3116b6 100644 --- a/rivalcfg/usbhid.py +++ b/rivalcfg/usbhid.py @@ -17,7 +17,6 @@ RIVALCFG_PROFILE=1038:1702 rivalcfg -h """ - import os import struct from io import BytesIO @@ -107,7 +106,6 @@ class DeviceNotFound(Exception): class FakeDevice: - """This class simulate an HID device as provided by the `hidapi `_ module.