diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7fcbd15..79436b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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 diff --git a/src/installer/destinations.py b/src/installer/destinations.py index d948356..1799cf6 100644 --- a/src/installer/destinations.py +++ b/src/installer/destinations.py @@ -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) diff --git a/tests/conftest.py b/tests/conftest.py index 9703d42..a19b338 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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"), ) diff --git a/tests/test_sources.py b/tests/test_sources.py index 1c65182..db10fc9 100644 --- a/tests/test_sources.py +++ b/tests/test_sources.py @@ -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: