diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58acc42ec..2d8f61a1f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.35.0 + rev: 0.36.0 hooks: - id: check-github-workflows args: ["--verbose"] @@ -15,7 +15,7 @@ repos: - id: codespell args: ["--write-changes"] - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "1.7.0" + rev: "1.7.1" hooks: - id: tox-ini-fmt args: ["-p", "fix"] @@ -24,13 +24,13 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.6" + rev: "v0.14.10" hooks: - id: ruff-format - id: ruff args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.6.2" + rev: "v3.7.4" hooks: - id: prettier additional_dependencies: diff --git a/src/virtualenv/seed/wheels/periodic_update.py b/src/virtualenv/seed/wheels/periodic_update.py index ac627b3bd..8ada2a758 100644 --- a/src/virtualenv/seed/wheels/periodic_update.py +++ b/src/virtualenv/seed/wheels/periodic_update.py @@ -350,7 +350,7 @@ def _pypi_get_distribution_info(distribution): try: for context in _request_context(): try: - with urlopen(url, context=context) as file_handler: # noqa: S310 + with urlopen(url, context=context) as file_handler: content = json.load(file_handler) break except URLError as exception: diff --git a/tasks/update_embedded.py b/tasks/update_embedded.py index 933e033f6..a2fad314d 100755 --- a/tasks/update_embedded.py +++ b/tasks/update_embedded.py @@ -30,8 +30,8 @@ def rebuild(script_path): script_parts = [] match_end = 0 next_match = None - _count, did_update = 0, False - for _count, next_match in enumerate(file_regex.finditer(script_content)): + count, did_update = 0, False + for count, next_match in enumerate(file_regex.finditer(script_content)): script_parts += [script_content[match_end : next_match.start()]] match_end = next_match.end() 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): script_parts += [script_content[match_end:]] new_content = "".join(script_parts) - report(1 if not _count or did_update else 0, new_content, next_match, script_content, script_path) + report(1 if not count or did_update else 0, new_content, next_match, script_content, script_path) def handle_file(previous_content, filename, variable_name, previous_encoded):