Skip to content

Commit 04d3f5d

Browse files
committed
making the linter happy, again
1 parent 13bd07b commit 04d3f5d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

ci/tools/merge_cuda_core_wheels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import argparse
2222
import os
2323
import shutil
24-
import subprocess # nosec: B404
24+
import subprocess
2525
import sys
2626
import tempfile
2727
from pathlib import Path
@@ -34,7 +34,7 @@ def run_command(cmd: List[str], cwd: Path = None, env: dict = os.environ) -> sub
3434
if cwd:
3535
print(f" Working directory: {cwd}")
3636

37-
result = subprocess.run(cmd, cwd=cwd, env=env, capture_output=True, text=True) # nosec: B603
37+
result = subprocess.run(cmd, cwd=cwd, env=env, capture_output=True, text=True) # noqa: S603
3838

3939
if result.returncode != 0:
4040
print(f"Command failed with return code {result.returncode}")

cuda_core/build_hooks.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import glob
1414
import os
1515
import re
16-
import subprocess # nosec: B404
16+
import subprocess
1717

1818
from Cython.Build import cythonize
1919
from setuptools import Extension
@@ -41,7 +41,7 @@ def _get_proper_cuda_bindings_major_version() -> str:
4141

4242
# also for local development
4343
try:
44-
out = subprocess.run("nvidia-smi", env=os.environ, capture_output=True, check=True) # nosec: B603, B607
44+
out = subprocess.run("nvidia-smi", env=os.environ, capture_output=True, check=True) # noqa: S603, S607
4545
m = re.search(r"CUDA Version:\s*([\d\.]+)", out.stdout.decode())
4646
if m:
4747
return m.group(1).split(".")[0]
@@ -97,9 +97,12 @@ def get_cuda_paths():
9797

9898
global _extensions
9999
_extensions = cythonize(
100-
ext_modules, verbose=True, language_level=3, nthreads=nthreads,
100+
ext_modules,
101+
verbose=True,
102+
language_level=3,
103+
nthreads=nthreads,
101104
compiler_directives={"embedsignature": True, "warn.deprecated.IF": False},
102-
compile_time_env=compile_time_env
105+
compile_time_env=compile_time_env,
103106
)
104107

105108
return _build_meta.build_wheel(wheel_directory, config_settings, metadata_directory)

0 commit comments

Comments
 (0)