From cd81d597173114f02313a1b5f683970e2a2a6820 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 22 Nov 2025 23:47:26 +0000 Subject: [PATCH] style: format code with Black This commit fixes the style issues introduced in d2d99ed according to the output from Black. Details: None --- __init__.py | 1 + __main__.py | 1 + length.py | 1 + logo.py | 1 + main.py | 1 + setup.py | 1 + tests/test_main.py | 13 ++++++------- width.py | 1 + 8 files changed, 13 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index 98d7a5f..0748fe4 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,5 @@ """Initialize PyPI Package""" + # pylint: disable=locally-disabled, invalid-name, import-error __all__ = [] diff --git a/__main__.py b/__main__.py index d9ccadf..dc5500e 100644 --- a/__main__.py +++ b/__main__.py @@ -1,4 +1,5 @@ """Run widgets from main.""" + # pylint: disable=locally-disabled, invalid-name, import-error from main import widgets diff --git a/length.py b/length.py index fa12c4a..69dc619 100644 --- a/length.py +++ b/length.py @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ + # pylint: disable=locally-disabled, invalid-name, import-error # Import Statements diff --git a/logo.py b/logo.py index 9cc6149..7ce063f 100644 --- a/logo.py +++ b/logo.py @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ + # pylint: disable=locally-disabled, invalid-name, import-error # Import Statements diff --git a/main.py b/main.py index 779239b..2b4c884 100644 --- a/main.py +++ b/main.py @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ + # pylint: disable=locally-disabled, invalid-name, import-error # Import Statements diff --git a/setup.py b/setup.py index 4ff36c5..60d8caa 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup file for the Python-Logo-Widgets package.""" + # pylint: disable=locally-disabled, invalid-name, import-error from setuptools import setup, find_packages diff --git a/tests/test_main.py b/tests/test_main.py index e48055d..35fab4b 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,4 +1,5 @@ """This is a test file for the Python-Logo-Widgets package.""" + # pylint: disable=locally-disabled, wrong-import-position, import-error import sys @@ -12,13 +13,11 @@ def test_widgets(): """Test the widgets function.""" - with unittest.mock.patch( - "main.logo_widget" - ) as mock_logo_widget, unittest.mock.patch( - "main.length_widget" - ) as mock_length_widget, unittest.mock.patch( - "main.width_widget" - ) as mock_width_widget: + with ( + unittest.mock.patch("main.logo_widget") as mock_logo_widget, + unittest.mock.patch("main.length_widget") as mock_length_widget, + unittest.mock.patch("main.width_widget") as mock_width_widget, + ): main.widgets() mock_logo_widget.assert_called_once() mock_length_widget.assert_called_once() diff --git a/width.py b/width.py index e8e7e2e..5c26bc6 100644 --- a/width.py +++ b/width.py @@ -14,6 +14,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ + # pylint: disable=locally-disabled, invalid-name, import-error # Import Statements