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:
parent
2d6d902428
commit
5aaa4e602e
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue