Skip to content

Commit 5c8aa62

Browse files
pre-commit-ci[bot]radoering
authored andcommitted
[pre-commit.ci] pre-commit autoupdate
updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0) - [github.com/pre-commit/pygrep-hooks: v1.9.0 → v1.10.0](pre-commit/pygrep-hooks@v1.9.0...v1.10.0) - [github.com/asottile/pyupgrade: v3.2.2 → v3.3.1](asottile/pyupgrade@v3.2.2...v3.3.1) - [github.com/pycqa/isort: 5.10.1 → 5.12.0](PyCQA/isort@5.10.1...5.12.0) - [github.com/psf/black: 22.10.0 → 23.1.0](psf/black@22.10.0...23.1.0)
1 parent c19b69e commit 5c8aa62

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.3.0
6+
rev: v4.4.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
@@ -19,7 +19,7 @@ repos:
1919
- id: check-docstring-first
2020

2121
- repo: https://github.com/pre-commit/pygrep-hooks
22-
rev: v1.9.0
22+
rev: v1.10.0
2323
hooks:
2424
- id: python-check-mock-methods
2525
- id: python-use-type-annotations
@@ -45,13 +45,13 @@ repos:
4545
- pep8-naming==0.13.1
4646

4747
- repo: https://github.com/asottile/pyupgrade
48-
rev: v3.2.2
48+
rev: v3.3.1
4949
hooks:
5050
- id: pyupgrade
5151
args: [--py37-plus]
5252

5353
- repo: https://github.com/pycqa/isort
54-
rev: 5.10.1
54+
rev: 5.12.0
5555
hooks:
5656
- id: isort
5757
name: isort (python)
@@ -63,7 +63,7 @@ repos:
6363
args: [--lines-after-imports, "-1"]
6464

6565
- repo: https://github.com/psf/black
66-
rev: 22.10.0
66+
rev: 23.1.0
6767
hooks:
6868
- id: black
6969

src/poetry_plugin_bundle/bundlers/venv_bundler.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ def bundle(self, poetry: Poetry, io: IO) -> bool:
9797

9898
self._write(
9999
io,
100-
f"{message}: <info>Creating a virtual environment using Python"
101-
f" <b>{python_version}</b></info>",
100+
(
101+
f"{message}: <info>Creating a virtual environment using Python"
102+
f" <b>{python_version}</b></info>"
103+
),
102104
)
103105

104106
manager.build_venv(str(self._path), executable=executable)
@@ -109,8 +111,10 @@ def bundle(self, poetry: Poetry, io: IO) -> bool:
109111
else:
110112
self._write(
111113
io,
112-
f"{message}: <info>Creating a virtual environment using Python"
113-
f" <b>{python_version}</b></info>",
114+
(
115+
f"{message}: <info>Creating a virtual environment using Python"
116+
f" <b>{python_version}</b></info>"
117+
),
114118
)
115119

116120
manager.build_venv(str(self._path), executable=executable)
@@ -143,8 +147,10 @@ def bundle(self, poetry: Poetry, io: IO) -> bool:
143147

144148
self._write(
145149
io,
146-
f"{message}: <info>Installing <c1>{poetry.package.pretty_name}</c1>"
147-
f" (<b>{poetry.package.pretty_version}</b>)</info>",
150+
(
151+
f"{message}: <info>Installing <c1>{poetry.package.pretty_name}</c1>"
152+
f" (<b>{poetry.package.pretty_version}</b>)</info>"
153+
),
148154
)
149155

150156
# Build a wheel of the project in a temporary directory

src/poetry_plugin_bundle/console/commands/bundle/venv.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ class BundleVenvCommand(BundleCommand):
2626
option(
2727
"python",
2828
"p",
29-
"The Python executable to use to create the virtual environment. "
30-
"Defaults to the current Python executable",
29+
(
30+
"The Python executable to use to create the virtual environment. "
31+
"Defaults to the current Python executable"
32+
),
3133
flag=False,
3234
value_required=True,
3335
),

0 commit comments

Comments
 (0)