Skip to content

Commit 588f5e8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3396c25 commit 588f5e8

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

examples/other_languages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
import sys
66
from subprocess import PIPE, Popen
77

8-
from sigopt import Connection
98
from security import safe_command
109

10+
from sigopt import Connection
11+
1112

1213
class SubProcessEvaluator(object):
1314
def __init__(self, command):

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ packaging>=21.3
55
pypng>=0.0.20
66
PyYAML>=5,<7
77
requests>=2.25.0,<3.0.0
8-
urllib3>=1.26.5,<2.0.0
98
security==1.3.1
9+
urllib3>=1.26.5,<2.0.0

sigopt/cli/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
import threading
1212

1313
import click
14+
from security import safe_command
1415

1516
from sigopt.factory import SigOptFactory
1617
from sigopt.run_context import GlobalRunContext
1718
from sigopt.sigopt_logging import enable_print_logging, print_logger
1819

1920
from .arguments.load_yaml import ValidatedData
20-
from security import safe_command
2121

2222

2323
class StreamThread(threading.Thread):
@@ -81,7 +81,9 @@ def run_subprocess_command(config, run_context, cmd, env=None):
8181
env = get_subprocess_environment(config, run_context, env)
8282
proc_stdout, proc_stderr = subprocess.PIPE, subprocess.PIPE
8383
try:
84-
proc = safe_command.run(subprocess.Popen, cmd,
84+
proc = safe_command.run(
85+
subprocess.Popen,
86+
cmd,
8587
env=env,
8688
stdout=proc_stdout,
8789
stderr=proc_stderr,

0 commit comments

Comments
 (0)