Skip to content

Commit 7b9ee82

Browse files
committed
[SDL] Enable Bandit B404 test
1 parent df599c8 commit 7b9ee82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pythonpath = "."
207207
exclude_dirs = ["tools", "tests", "**/venv*", "build"]
208208
skips = [
209209
"B101", # assert_used
210-
"B404", # import_subprocess
210+
# "B404", # import_subprocess - required by SDL
211211
"B614", # pytorch_load
212212
"B615", # huggingface_unsafe_download
213213
]

src/custom_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
import contextlib
4949
import os
5050
import re
51-
import subprocess
51+
import subprocess # nosec B404
5252
from pathlib import Path
5353

5454
NNCF_VERSION_FILE = "src/nncf/version.py"

src/nncf/torch/quantization/extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# limitations under the License.
1111

1212
import os.path
13-
import subprocess
13+
import subprocess # nosec B404
1414

1515
import torch
1616

0 commit comments

Comments
 (0)