Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent f3bec6f commit 4b859f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/virtualenv/discovery/cached_py_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _run_subprocess(cls, exe, app_data, env):
logging.debug("get interpreter info via cmd: %s", LogCmd(cmd))
try:
process = Popen(
cmd, # noqa: S603
cmd,
universal_newlines=True,
stdin=subprocess.PIPE,
stderr=subprocess.PIPE,
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/util/subprocess/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def run_cmd(cmd):
try:
process = subprocess.Popen(
cmd, # noqa: S603
cmd,
universal_newlines=True,
stdin=subprocess.PIPE,
stderr=subprocess.PIPE,
Expand Down
2 changes: 1 addition & 1 deletion tasks/make_zipapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _build_sdist(self, folder, target):

def run_suppress_output(cmd, stop_print_on_fail=False): # noqa: FBT002
process = subprocess.Popen(
cmd, # noqa: S603
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
Expand Down
6 changes: 3 additions & 3 deletions tasks/upgrade_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def download(ver, dest, package):
subprocess.call(
[ # noqa: S603
[
sys.executable,
"-m",
"pip",
Expand Down Expand Up @@ -121,11 +121,11 @@ def get_embed_wheel(distribution, for_py_version):
dest_target.write_text(msg, encoding="utf-8")

subprocess.run(
[sys.executable, "-m", "ruff", "check", str(dest_target), "--fix", "--unsafe-fixes"], # noqa: S603
[sys.executable, "-m", "ruff", "check", str(dest_target), "--fix", "--unsafe-fixes"],
check=False,
)
subprocess.run(
[sys.executable, "-m", "ruff", "format", str(dest_target), "--preview"], # noqa: S603
[sys.executable, "-m", "ruff", "format", str(dest_target), "--preview"],
check=False,
)

Expand Down

0 comments on commit 4b859f6

Please sign in to comment.