Skip to content

Commit db88404

Browse files
authored
Merge pull request #2379 from kurtmckee/bandit-warnings
Resolve bandit warnings
2 parents 2985bca + e42578f commit db88404

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

isort/hooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
import os
8-
import subprocess # nosec - Needed for hook
8+
import subprocess # nosec
99
from pathlib import Path
1010
from typing import List, Optional
1111

@@ -18,7 +18,7 @@ def get_output(command: List[str]) -> str:
1818
:param str command: the command to run
1919
:returns: the stdout output of the command
2020
"""
21-
result = subprocess.run(command, stdout=subprocess.PIPE, check=True) # nosec - trusted input
21+
result = subprocess.run(command, stdout=subprocess.PIPE, check=True) # nosec
2222
return result.stdout.decode()
2323

2424

isort/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import posixpath
1010
import re
1111
import stat
12-
import subprocess # nosec: Needed for gitignore support.
12+
import subprocess # nosec # Needed for gitignore support.
1313
import sys
1414
from dataclasses import dataclass, field
1515
from pathlib import Path

0 commit comments

Comments
 (0)