Skip to content

Commit cdaf3eb

Browse files
committed
lint update
Signed-off-by: Azimjon Ulmasov <azimjon.ulmasov@chainguard.dev>
1 parent cdbf463 commit cdaf3eb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pre_commit_hooks/shellcheck_run_steps.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def main(argv: Sequence[str] | None = None) -> int:
110110
delete_on_close=False,
111111
) as compiled_out:
112112
# Try multiple architectures
113-
architectures = list(dict.fromkeys([os.uname().machine, 'x86_64', 'aarch64']))
113+
architectures = list(
114+
dict.fromkeys([os.uname().machine, "x86_64", "aarch64"]),
115+
)
114116
compilation_succeeded = False
115117

116118
for i, arch in enumerate(architectures):
@@ -130,12 +132,12 @@ def main(argv: Sequence[str] | None = None) -> int:
130132
stdout=compiled_out,
131133
stderr=subprocess.PIPE,
132134
check=True,
133-
text=True
135+
text=True,
134136
)
135137
compilation_succeeded = True
136138
break # Success, exit the architecture loop
137-
except subprocess.CalledProcessError as e:
138-
if i < len(architectures) - 1:
139+
except subprocess.CalledProcessError:
140+
if i < len(architectures) - 1:
139141
# Reset the file for the next attempt
140142
compiled_out.seek(0)
141143
compiled_out.truncate()

0 commit comments

Comments
 (0)