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")