Skip to content

Commit c95a58f

Browse files
rgaudinbenoit74
authored andcommitted
Upgrading dev dependencies
Reasoning: coverage reported a lot of missing lines on zim/metadata.py with previous version Also includes auto linting where new ruff complained
1 parent d44fa1e commit c95a58f

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@ scripts = [
5353
]
5454
lint = [
5555
"black==24.10.0",
56-
"ruff==0.7.0",
56+
"ruff==0.8.2",
5757
]
5858
check = [
59-
"pyright==1.1.385",
60-
"pytest==8.3.3",
59+
"pyright==1.1.390",
60+
"pytest==8.3.4",
6161
]
6262
test = [
63-
"pytest==8.3.3",
63+
"pytest==8.3.4",
6464
"pytest-mock==3.14.0",
65-
"coverage==7.5.3",
65+
"coverage==7.6.9",
6666
]
6767
dev = [
68-
"ipython==8.25.0",
68+
"ipython==8.30.0",
6969
"pre-commit==4.0.1",
7070
"zimscraperlib[scripts]",
7171
"zimscraperlib[lint]",

src/zimscraperlib/image/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def convert_image(
3737
if not fmt:
3838
raise ValueError("Impossible to guess destination image format")
3939
with pilopen(src) as image:
40-
if image.mode == "RGBA" and fmt in ALPHA_NOT_SUPPORTED or colorspace:
40+
if (image.mode == "RGBA" and fmt in ALPHA_NOT_SUPPORTED) or colorspace:
4141
image = image.convert(colorspace or "RGB") # noqa: PLW2901
4242
save_image(image, dst, fmt, **params)
4343

src/zimscraperlib/zim/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727

2828
__all__ = [
2929
"Archive",
30+
"Blob",
3031
"Creator",
31-
"make_zim_file",
32+
"FileLikeProvider",
33+
"FileProvider",
3234
"Item",
3335
"StaticItem",
34-
"URLItem",
35-
"FileProvider",
3636
"StringProvider",
37-
"FileLikeProvider",
37+
"URLItem",
3838
"URLProvider",
39-
"Blob",
39+
"make_zim_file",
4040
]

0 commit comments

Comments
 (0)