Skip to content

Commit 3565d73

Browse files
authored
Add --diff as a default argument for isort (#438)
Without it, isort just complains that imports are incorrectly formatted, without showing how to fix it.
2 parents a0045f9 + 2da6532 commit 3565d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def formatting(session: nox.Session, install_deps: bool = True) -> None:
162162

163163
paths = _source_file_paths(session)
164164
session.run("black", "--check", *paths)
165-
session.run("isort", "--check", *paths)
165+
session.run("isort", "--diff", "--check", *paths)
166166

167167

168168
@nox.session

0 commit comments

Comments
 (0)