diff --git a/isort/hooks.py b/isort/hooks.py index b248d354..4a58f475 100644 --- a/isort/hooks.py +++ b/isort/hooks.py @@ -5,7 +5,7 @@ """ import os -import subprocess # nosec - Needed for hook +import subprocess # nosec from pathlib import Path from typing import List, Optional @@ -18,7 +18,7 @@ def get_output(command: List[str]) -> str: :param str command: the command to run :returns: the stdout output of the command """ - result = subprocess.run(command, stdout=subprocess.PIPE, check=True) # nosec - trusted input + result = subprocess.run(command, stdout=subprocess.PIPE, check=True) # nosec return result.stdout.decode() diff --git a/isort/settings.py b/isort/settings.py index b8281a41..1ce83229 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -9,7 +9,7 @@ import posixpath import re import stat -import subprocess # nosec: Needed for gitignore support. +import subprocess # nosec # Needed for gitignore support. import sys from dataclasses import dataclass, field from pathlib import Path