Skip to content

Commit 2552150

Browse files
committed
fix: update main.py to fix mypy
1 parent c01c25f commit 2552150

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,24 @@ def run_commit_check() -> int:
104104
# Non-PR context: let commit-check determine what to check from git.
105105
command = ["commit-check", "--message"]
106106
print(" ".join(command))
107-
result = subprocess.run(
107+
ret_code += subprocess.run(
108108
command,
109109
stdout=result_file,
110110
stderr=subprocess.STDOUT,
111+
text=True,
111112
check=False,
112-
)
113-
ret_code += result.returncode
113+
).returncode
114114

115115
if other_args:
116116
command = ["commit-check"] + other_args
117117
print(" ".join(command))
118-
result = subprocess.run(
118+
ret_code += subprocess.run(
119119
command,
120120
stdout=result_file,
121121
stderr=subprocess.STDOUT,
122+
text=True,
122123
check=False,
123-
)
124-
ret_code += result.returncode
124+
).returncode
125125

126126
return ret_code
127127

0 commit comments

Comments
 (0)