Skip to content

Commit 398ae7a

Browse files
[pre-commit.ci] pre-commit autoupdate (#83)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8926349 commit 398ae7a

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ repos:
1919
- id: check-docstring-first
2020

2121
- repo: https://github.com/psf/black-pre-commit-mirror
22-
rev: 23.10.1
22+
rev: 23.11.0
2323
hooks:
2424
- id: black
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.1.4
27+
rev: v0.1.5
2828
hooks:
2929
- id: ruff

src/poetry_plugin_bundle/bundlers/venv_bundler.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,11 @@ def _get_executable_info(self, executable: str) -> tuple[Path, Version]:
216216
pass
217217

218218
try:
219-
python_version_str = subprocess.check_output(
220-
[
221-
executable,
222-
"-c",
223-
(
224-
"import sys; print('.'.join([str(s) for s in"
225-
" sys.version_info[:3]]))"
226-
),
227-
]
228-
).decode()
219+
python_version_str = subprocess.check_output([
220+
executable,
221+
"-c",
222+
"import sys; print('.'.join([str(s) for s in sys.version_info[:3]]))",
223+
]).decode()
229224
except CalledProcessError as e:
230225
from poetry.utils.env import EnvCommandError
231226

0 commit comments

Comments
 (0)