Skip to content

Commit 49c2651

Browse files
committed
Linting
1 parent 5364daa commit 49c2651

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cuda_bindings/benchmarks/runner/cpp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def strip_output_args(argv: list[str]) -> list[str]:
4343
if arg in ("-o", "--output"):
4444
skip_next = True
4545
continue
46-
if arg.startswith("-o=") or arg.startswith("--output="):
46+
if arg.startswith(("-o=", "--output=")):
4747
continue
4848
cleaned.append(arg)
4949
return cleaned
@@ -161,7 +161,7 @@ def main() -> None:
161161
binary = registry[name]
162162
tmp_json = tmpdir_path / f"{name}.json"
163163
cmd = [str(binary), "-o", str(tmp_json), *passthrough_argv]
164-
result = subprocess.run(cmd)
164+
result = subprocess.run(cmd, check=False) # noqa: S603
165165
if result.returncode != 0:
166166
print(f"FAILED: {name} (exit code {result.returncode})", file=sys.stderr)
167167
failed = True

cuda_bindings/benchmarks/runner/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def strip_pyperf_output_args(argv: list[str]) -> list[str]:
6666
if arg in ("-o", "--output", "--append"):
6767
skip_next = True
6868
continue
69-
if arg.startswith("-o=") or arg.startswith("--output=") or arg.startswith("--append="):
69+
if arg.startswith(("-o=", "--output=", "--append=")):
7070
continue
7171
cleaned.append(arg)
7272
return cleaned

0 commit comments

Comments
 (0)