Skip to content

Commit fb25133

Browse files
committed
fix lint failure
1 parent c773375 commit fb25133

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

cpp_linter_hooks/clang_format.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@ def run_clang_format(args=None) -> Tuple[int, str]:
2222
output = ""
2323
try:
2424
if "--dry-run" in command:
25-
sp = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8")
25+
sp = subprocess.run(
26+
command,
27+
stdout=subprocess.PIPE,
28+
stderr=subprocess.PIPE,
29+
encoding="utf-8",
30+
)
2631
retval = -1 # Not a fail just identify it's a dry-run.
2732
output = sp.stdout + sp.stderr
2833
else:
29-
retval = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE).returncode
34+
retval = subprocess.run(
35+
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE
36+
).returncode
3037
return retval, output
3138
except FileNotFoundError as stderr:
3239
retval = 1

0 commit comments

Comments
 (0)