lint: explicit check

Add an explicit check to the return value of subprocess.run.
This commit is contained in:
Simon de Vlieger 2024-03-05 11:09:53 +01:00 committed by Ondřej Budai
parent c9739dbd2a
commit 6536a45d0a

View file

@ -227,7 +227,7 @@ def pretty_diff(
paths.append(path)
subprocess.run((["diff", "-u"] if simple else ["vimdiff"]) + paths)
subprocess.run((["diff", "-u"] if simple else ["vimdiff"]) + paths, check=True)
return 0