Skip to content
Merged
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
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.0
rev: v2.3.1
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -26,7 +26,7 @@ repos:
- id: blacken-docs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.22
rev: v0.16.7
hooks:
- id: ruff-check
- id: ruff-format
4 changes: 2 additions & 2 deletions src/installer/destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,5 @@ def prefix_for_scheme(file_scheme: str) -> str | None:
scheme, record_file_path, record_stream, is_executable=False
)

for scheme, record in record_list:
self._compile_bytecode(scheme, record)
for scheme_, record in record_list:
self._compile_bytecode(scheme_, record)
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def main():
}

with zipfile.ZipFile(path, "w") as archive:
for name, indented_content in files.items():
for filename, indented_content in files.items():
archive.writestr(
name,
filename,
textwrap.dedent(indented_content.decode("utf-8")).encode("utf-8"),
)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def replace_file_in_zip(path: str, filename: str, content: "str | None") -> None
files[file] = archive.read(file)
# Replace original archive
with zipfile.ZipFile(path, mode="w") as archive:
for name, content in files.items():
archive.writestr(name, content)
for name, file_content in files.items():
archive.writestr(name, file_content)


class TestWheelFile:
Expand Down
Loading