From 5aaa4e602ef5e40360d719664ba7eef152818628 Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Wed, 14 Sep 2022 08:50:12 +0200 Subject: [PATCH] test/isort: print diff Make isort print the diff so we can actually fix the problems. This might be overly verbose when introducing isort, but for new changes it is very nice to see the actual code it complains about. Signed-off-by: David Rheinsberg --- test/src/test_pylint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/test_pylint.py b/test/src/test_pylint.py index 103224c0..2c8f7d26 100644 --- a/test/src/test_pylint.py +++ b/test/src/test_pylint.py @@ -76,7 +76,7 @@ def test_isort(source_files): # modules we have. # - r = subprocess.run(["isort", "-c"] + source_files, check=False) + r = subprocess.run(["isort", "--check", "--diff"] + source_files, check=False) if r.returncode != 0: pytest.fail("isort issues detected")