diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec8f2a1..2d3cb72 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: # auto format Python codes within docstrings - id: blacken-docs - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.9 + rev: v0.15.5 hooks: # lint & attempt to correct failures (e.g. pyupgrade) - id: ruff-check @@ -43,7 +43,7 @@ repos: # compatible replacement for black - id: ruff-format - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.35.0 + rev: 0.37.0 hooks: # verify github syntaxes - id: check-github-workflows diff --git a/conda_package_streaming/create.py b/conda_package_streaming/create.py index 732474d..203e9c9 100644 --- a/conda_package_streaming/create.py +++ b/conda_package_streaming/create.py @@ -95,10 +95,10 @@ def conda_builder( stem, path, *, - compressor: Callable[ - [], zstandard.ZstdCompressor - ] = lambda: zstandard.ZstdCompressor( - level=ZSTD_COMPRESS_LEVEL, threads=ZSTD_COMPRESS_THREADS + compressor: Callable[[], zstandard.ZstdCompressor] = lambda: ( + zstandard.ZstdCompressor( + level=ZSTD_COMPRESS_LEVEL, threads=ZSTD_COMPRESS_THREADS + ) ), is_info: Callable[[str], bool] = lambda filename: filename.startswith("info/"), encoding="utf-8", diff --git a/conda_package_streaming/transmute.py b/conda_package_streaming/transmute.py index ecbd96e..32a2083 100644 --- a/conda_package_streaming/transmute.py +++ b/conda_package_streaming/transmute.py @@ -27,10 +27,10 @@ def transmute( package, path, *, - compressor: Callable[ - [], zstandard.ZstdCompressor - ] = lambda: zstandard.ZstdCompressor( - level=ZSTD_COMPRESS_LEVEL, threads=ZSTD_COMPRESS_THREADS + compressor: Callable[[], zstandard.ZstdCompressor] = lambda: ( + zstandard.ZstdCompressor( + level=ZSTD_COMPRESS_LEVEL, threads=ZSTD_COMPRESS_THREADS + ) ), is_info: Callable[[str], bool] = lambda filename: filename.startswith("info/"), ) -> Path: @@ -67,10 +67,10 @@ def transmute_stream( stem, path, *, - compressor: Callable[ - [], zstandard.ZstdCompressor - ] = lambda: zstandard.ZstdCompressor( - level=ZSTD_COMPRESS_LEVEL, threads=ZSTD_COMPRESS_THREADS + compressor: Callable[[], zstandard.ZstdCompressor] = lambda: ( + zstandard.ZstdCompressor( + level=ZSTD_COMPRESS_LEVEL, threads=ZSTD_COMPRESS_THREADS + ) ), is_info: Callable[[str], bool] = lambda filename: filename.startswith("info/"), package_stream: Iterator[tuple[tarfile.TarFile, tarfile.TarInfo]],