Skip to content

Commit 9b959eb

Browse files
authored
Merge pull request #251 from openzim/upgrade_deps
Upgrade to wombat 3.8.8 and other Python/JS dependencies
2 parents 1afacff + 91f1100 commit 9b959eb

27 files changed

Lines changed: 684 additions & 589 deletions

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ repos:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
1010
- repo: https://github.com/psf/black
11-
rev: '24.10.0'
11+
rev: '25.1.0'
1212
hooks:
1313
- id: black
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.9.2
15+
rev: v0.9.6
1616
hooks:
1717
- id: ruff
1818
- repo: https://github.com/RobertCraigie/pyright-python
19-
rev: v1.1.391
19+
rev: v1.1.394
2020
hooks:
2121
- id: pyright
2222
name: pyright (system)

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Upgrade to wombat 3.8.8 and other Python/JS dependencies (#249)
13+
1014
## [5.1.0] - 2025-01-21
1115

1216
### Changed

javascript/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"license": "GPL-3.0-or-later",
66
"author": "openZIM",
77
"devDependencies": {
8-
"@rollup/plugin-commonjs": "28.0.1",
9-
"@rollup/plugin-node-resolve": "15.3.0",
8+
"@rollup/plugin-commonjs": "28.0.2",
9+
"@rollup/plugin-node-resolve": "16.0.0",
1010
"@rollup/plugin-strip": "^3.0.4",
1111
"@rollup/plugin-terser": "0.4.4",
12-
"ava": "^6.1.3",
12+
"ava": "^6.2.0",
1313
"babel-eslint": "^10.1.0",
14-
"eslint": "9.13.0",
15-
"eslint-config-prettier": "9.1.0",
16-
"prettier": "3.3.3",
17-
"rollup": "4.24.0",
14+
"eslint": "9.20.1",
15+
"eslint-config-prettier": "10.0.1",
16+
"prettier": "3.5.1",
17+
"rollup": "4.34.7",
1818
"rollup-plugin-version-injector": "^1.3.3"
1919
},
2020
"scripts": {

javascript/yarn.lock

Lines changed: 535 additions & 464 deletions
Large diffs are not rendered by default.

openzim.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ execute_after=[
66

77
[files.assets.actions."wombat.js"]
88
action="get_file"
9-
source="https://cdn.jsdelivr.net/npm/@webrecorder/[email protected].7/dist/wombat.js"
9+
source="https://cdn.jsdelivr.net/npm/@webrecorder/[email protected].8/dist/wombat.js"
1010
target_file="wombat.js"

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,30 +56,30 @@ scripts = [
5656

5757
]
5858
lint = [
59-
"black==24.10.0",
60-
"ruff==0.9.2",
59+
"black==25.1.0",
60+
"ruff==0.9.6",
6161
]
6262
check = [
63-
"pyright==1.1.391",
63+
"pyright==1.1.394",
6464
"pytest==8.3.4",
6565
]
6666
test = [
6767
"pytest==8.3.4",
6868
"pytest-mock==3.14.0",
69-
"coverage==7.6.10",
69+
"coverage==7.6.12",
7070
]
7171
docs = [
7272
"mkdocs==1.6.1",
73-
"mkdocstrings[python]==0.27.0",
74-
"mkdocs-material==9.5.50",
75-
"pymdown-extensions==10.14",
73+
"mkdocstrings[python]==0.28.1",
74+
"mkdocs-material==9.6.4",
75+
"pymdown-extensions==10.14.3",
7676
"mkdocs-gen-files==0.5.0",
7777
"mkdocs-literate-nav==0.6.1",
78-
"mkdocs-include-markdown-plugin==7.1.2",
78+
"mkdocs-include-markdown-plugin==7.1.4",
7979
]
8080
dev = [
81-
"ipython==8.31.0",
82-
"pre-commit==4.0.1",
81+
"ipython==8.32.0",
82+
"pre-commit==4.1.0",
8383
"zimscraperlib[scripts]",
8484
"zimscraperlib[lint]",
8585
"zimscraperlib[test]",

src/zimscraperlib/filesystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
""" Files manipulation tools
1+
"""Files manipulation tools
22
3-
Shortcuts to retrieve mime type using magic"""
3+
Shortcuts to retrieve mime type using magic"""
44

55
import pathlib
66
from contextlib import contextmanager

src/zimscraperlib/fix_ogvjs_dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" quick script to fix videojs-ogvjs so that it triggers on webm mimetype """
1+
"""quick script to fix videojs-ogvjs so that it triggers on webm mimetype"""
22

33
import logging
44
import pathlib

src/zimscraperlib/html.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Tools to work with HTML contents """
1+
"""Tools to work with HTML contents"""
22

33
import pathlib
44
from typing import BinaryIO, TextIO
@@ -43,11 +43,13 @@ def find_language_in(content: str | BinaryIO | TextIO, mime_type: str) -> str:
4343
continue
4444
if (
4545
nodename == "meta"
46-
and not node.attrs.get("http-equiv", "").lower()
46+
and not node.attrs.get(
47+
"http-equiv", ""
48+
).lower() # pyright:ignore[reportUnknownMemberType, reportAttributeAccessIssue]
4749
== "content-language"
4850
):
4951
continue
50-
return node.attrs[key]
52+
return node.attrs[key] # pyright:ignore[reportReturnType]
5153
return ""
5254

5355

src/zimscraperlib/image/optimization.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
""" An image optimization module to optimize the following image formats:
1+
"""An image optimization module to optimize the following image formats:
22
3-
- JPEG (using optimize-images)
4-
- PNG (using optimize-images)
5-
- GIF (using gifsicle with lossy optimization)
6-
- WebP (using Pillow)
3+
- JPEG (using optimize-images)
4+
- PNG (using optimize-images)
5+
- GIF (using gifsicle with lossy optimization)
6+
- WebP (using Pillow)
77
8-
Some important notes:
9-
- This makes use of the --lossy option from gifsicle which is present
10-
only in versions above 1.92.
11-
If the package manager has a lower version, you can build gifsicle
12-
from source and install or
13-
do not use the lossiness option.
8+
Some important notes:
9+
- This makes use of the --lossy option from gifsicle which is present
10+
only in versions above 1.92.
11+
If the package manager has a lower version, you can build gifsicle
12+
from source and install or
13+
do not use the lossiness option.
1414
15-
- Presets for the optimizer are available in zimscraperlib.image.presets.
15+
- Presets for the optimizer are available in zimscraperlib.image.presets.
1616
17-
- If no options for an image optimization is passed, the optimizer
18-
can still run on default settings which give
19-
a bit less size than the original images but maintain a high quality. """
17+
- If no options for an image optimization is passed, the optimizer
18+
can still run on default settings which give
19+
a bit less size than the original images but maintain a high quality."""
2020

2121
import io
2222
import os

0 commit comments

Comments
 (0)