Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#38)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.3.5](astral-sh/ruff-pre-commit@v0.1.9...v0.3.5)
- [github.com/psf/black: 23.12.1 → 24.3.0](psf/black@23.12.1...24.3.0)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Apr 2, 2024
1 parent 191f2ae commit a9043f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions compress_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9043f4

Please sign in to comment.