shell=True is not flagged as problematic when the function is imported with from subprocess import.
Two functionally equivalent python files, I would expect equivalent results.
# shell_true_import_from.py
from subprocess import call
call("echo hello", shell=True)
# shell_true_import_subprocess.py
import subprocess
subprocess.call("echo hello", shell=True)
Unfortunately, only one file is detected as problematic.
% flake8
./shell_true_import_subprocess.py:3:1: SCS103 use of `shell=True` in subprocess functions or use of functions that internally set it should be avoided
shell=Trueis not flagged as problematic when the function is imported withfrom subprocess import.Two functionally equivalent python files, I would expect equivalent results.
Unfortunately, only one file is detected as problematic.