From e70fd80df3ad396636b53804f7f89990e43f4029 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 2f8feb6..4173b0a 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) -> None: """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 04956c9..a6f98f3 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) -> None: """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 b913481..f3ac2e5 100644 --- a/tests/test_pylint.py +++ b/tests/test_pylint.py @@ -36,7 +36,6 @@ class PylintTestCase(unittest.TestCase): def test_pylint(self) -> None: """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")