From ca83a393a9d2b7af5fe054ce9a6aa96a82e8554b Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Thu, 1 Aug 2024 21:04:16 +0200 Subject: [PATCH] refactor(tests): Remove unneeded empty lines Signed-off-by: Benjamin Drung --- tests/test_black.py | 1 - tests/test_isort.py | 1 - tests/test_pylint.py | 1 - 3 files changed, 3 deletions(-) diff --git a/tests/test_black.py b/tests/test_black.py index 078cf3f..1a85d0b 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -32,7 +32,6 @@ class BlackTestCase(unittest.TestCase): @unittest.skipIf(os.environ.get("SKIP_LINTERS"), "requested via SKIP_LINTERS env variable") def test_black(self): """Test: Run black code formatter on Python source code.""" - cmd = ["black", "--check", "--diff"] + get_source_files() if unittest_verbosity() >= 2: sys.stderr.write(f"Running following command:\n{' '.join(cmd)}\n") diff --git a/tests/test_isort.py b/tests/test_isort.py index 30683fc..34720ac 100644 --- a/tests/test_isort.py +++ b/tests/test_isort.py @@ -32,7 +32,6 @@ class IsortTestCase(unittest.TestCase): @unittest.skipIf(os.environ.get("SKIP_LINTERS"), "requested via SKIP_LINTERS env variable") def test_isort(self): """Test: Run isort on Python source code.""" - cmd = ["isort", "--check-only", "--diff"] + get_source_files() if unittest_verbosity() >= 2: sys.stderr.write(f"Running following command:\n{' '.join(cmd)}\n") diff --git a/tests/test_pylint.py b/tests/test_pylint.py index 030f56c..f5e25e9 100644 --- a/tests/test_pylint.py +++ b/tests/test_pylint.py @@ -36,7 +36,6 @@ class PylintTestCase(unittest.TestCase): def test_pylint(self): """Test: Run pylint on Python source code.""" - cmd = ["pylint", "--rcfile=" + CONFIG, "--"] + get_source_files() if os.environ.get("SKIP_LINTERS"): cmd.insert(2, "--errors-only")