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 <david.rheinsberg@gmail.com>
This commit is contained in:
David Rheinsberg 2022-09-14 08:50:12 +02:00
parent 2d6d902428
commit 5aaa4e602e

View file

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