Skip to content

Commit 31b5d31

Browse files
[pre-commit.ci] pre-commit autoupdate (#2997)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7c28422 commit 31b5d31

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 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.35.0
8+
rev: 0.36.0
99
hooks:
1010
- id: check-github-workflows
1111
args: ["--verbose"]
@@ -15,7 +15,7 @@ repos:
1515
- id: codespell
1616
args: ["--write-changes"]
1717
- repo: https://github.com/tox-dev/tox-ini-fmt
18-
rev: "1.7.0"
18+
rev: "1.7.1"
1919
hooks:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
@@ -24,13 +24,13 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.14.6"
27+
rev: "v0.14.10"
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.6.2"
33+
rev: "v3.7.4"
3434
hooks:
3535
- id: prettier
3636
additional_dependencies:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ dynamic = [
4545
]
4646
dependencies = [
4747
"distlib>=0.3.7,<1",
48-
"filelock>=3.20.1,<4",
48+
"filelock>=3.16.1,<4; python_version<'3.10'",
49+
"filelock>=3.20.1,<4; python_version>='3.10'",
4950
"importlib-metadata>=6.6; python_version<'3.8'",
5051
"platformdirs>=3.9.1,<5",
5152
"typing-extensions>=4.13.2; python_version<'3.11'",

src/virtualenv/seed/wheels/periodic_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def _pypi_get_distribution_info(distribution):
350350
try:
351351
for context in _request_context():
352352
try:
353-
with urlopen(url, context=context) as file_handler: # noqa: S310
353+
with urlopen(url, context=context) as file_handler:
354354
content = json.load(file_handler)
355355
break
356356
except URLError as exception:

tasks/update_embedded.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def rebuild(script_path):
3030
script_parts = []
3131
match_end = 0
3232
next_match = None
33-
_count, did_update = 0, False
34-
for _count, next_match in enumerate(file_regex.finditer(script_content)):
33+
count, did_update = 0, False
34+
for count, next_match in enumerate(file_regex.finditer(script_content)): # noqa: B007
3535
script_parts += [script_content[match_end : next_match.start()]]
3636
match_end = next_match.end()
3737
filename, variable_name, previous_encoded = next_match.group(1), next_match.group(2), next_match.group(3)
@@ -43,7 +43,7 @@ def rebuild(script_path):
4343
script_parts += [script_content[match_end:]]
4444
new_content = "".join(script_parts)
4545

46-
report(1 if not _count or did_update else 0, new_content, next_match, script_content, script_path)
46+
report(1 if not count or did_update else 0, new_content, next_match, script_content, script_path)
4747

4848

4949
def handle_file(previous_content, filename, variable_name, previous_encoded):

0 commit comments

Comments
 (0)