Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.8"
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:
Expand Down
2 changes: 1 addition & 1 deletion src/virtualenv/seed/wheels/periodic_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions tasks/update_embedded.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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):
Expand Down
Loading