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
Expand Up @@ -35,15 +35,15 @@ 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
args: [--fix]
# 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
Expand Down
8 changes: 4 additions & 4 deletions conda_package_streaming/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 8 additions & 8 deletions conda_package_streaming/transmute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]],
Expand Down
Loading