Skip to content

Commit baf2da4

Browse files
[pre-commit.ci] pre-commit autoupdate (#2810)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2f5569c commit baf2da4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.29.4
8+
rev: 0.30.0
99
hooks:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
@@ -24,13 +24,13 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.8.0"
27+
rev: "v0.8.3"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff
3131
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
3232
- repo: https://github.com/rbubley/mirrors-prettier
33-
rev: "v3.3.3"
33+
rev: "v3.4.2"
3434
hooks:
3535
- id: prettier
3636
additional_dependencies:

src/virtualenv/util/path/_win.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ def get_short_path_name(long_name):
66
import ctypes # noqa: PLC0415
77
from ctypes import wintypes # noqa: PLC0415
88

9-
_GetShortPathNameW = ctypes.windll.kernel32.GetShortPathNameW # noqa: N806
10-
_GetShortPathNameW.argtypes = [wintypes.LPCWSTR, wintypes.LPWSTR, wintypes.DWORD]
11-
_GetShortPathNameW.restype = wintypes.DWORD
9+
GetShortPathNameW = ctypes.windll.kernel32.GetShortPathNameW # noqa: N806
10+
GetShortPathNameW.argtypes = [wintypes.LPCWSTR, wintypes.LPWSTR, wintypes.DWORD]
11+
GetShortPathNameW.restype = wintypes.DWORD
1212
output_buf_size = 0
1313
while True:
1414
output_buf = ctypes.create_unicode_buffer(output_buf_size)
15-
needed = _GetShortPathNameW(long_name, output_buf, output_buf_size)
15+
needed = GetShortPathNameW(long_name, output_buf, output_buf_size)
1616
if output_buf_size >= needed:
1717
return output_buf.value
1818
output_buf_size = needed

tests/unit/activation/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ def __call__(self, monkeypatch, tmp_path):
212212
stderr=subprocess.PIPE,
213213
env=env,
214214
)
215-
_out, _err = process.communicate()
216-
err = _err.decode("utf-8")
215+
_out, err_ = process.communicate()
216+
err = err_.decode("utf-8")
217217
assert process.returncode
218218
assert self.non_source_fail_message in err
219219

0 commit comments

Comments
 (0)