diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fcdf20..2dc37c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,19 +13,19 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.9" + rev: "v0.3.5" hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black - rev: "23.12.1" + rev: "24.3.0" hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.8.0" + rev: "v1.9.0" hooks: - id: mypy exclude: examples diff --git a/compress_wheel.py b/compress_wheel.py index c052445..5f6463e 100644 --- a/compress_wheel.py +++ b/compress_wheel.py @@ -11,9 +11,12 @@ def main(): fd_to_keep = [el for el in fd_to_keep if el.startswith(site_packages_prefix)] fd_to_keep = [el.replace(site_packages_prefix, "") for el in fd_to_keep] - with zipfile.ZipFile( - WHEELS_DIR / "numpy-1.22.3-cp310-cp310-emscripten_wasm32.whl", "r" - ) as zin, zipfile.ZipFile("/tmp/out.whl", "w") as zout: + with ( + zipfile.ZipFile( + WHEELS_DIR / "numpy-1.22.3-cp310-cp310-emscripten_wasm32.whl", "r" + ) as zin, + zipfile.ZipFile("/tmp/out.whl", "w") as zout, + ): for item in zin.infolist(): buff = zin.read(item.filename) keep = False