Skip to content

Commit 28ee9e3

Browse files
committed
Format code.
1 parent 88fbe75 commit 28ee9e3

File tree

5 files changed

+0
-7
lines changed

5 files changed

+0
-7
lines changed

src/zimscraperlib/image/optimization.py

-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def optimize_png(
6161
background_color: Optional[Tuple[int, int, int]] = (255, 255, 255),
6262
**options,
6363
) -> Union[pathlib.Path, io.BytesIO]:
64-
6564
"""method to optimize PNG files using a pure python external optimizer
6665
6766
Arguments:
@@ -107,7 +106,6 @@ def optimize_jpeg(
107106
keep_exif: Optional[bool] = True,
108107
**options,
109108
) -> Union[pathlib.Path, io.BytesIO]:
110-
111109
"""method to optimize JPEG files using a pure python external optimizer
112110
quality: JPEG quality (integer between 1 and 100)
113111
values: 50 | 55 | 35 | 100 | XX
@@ -155,7 +153,6 @@ def optimize_jpeg(
155153
dst.seek(0)
156154

157155
if keep_exif and had_exif:
158-
159156
piexif.transplant(
160157
exif_src=str(src.resolve())
161158
if isinstance(src, pathlib.Path)

tests/conftest.py

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def real_zim_file(tmpdir_factory):
174174

175175
@pytest.fixture(scope="session")
176176
def undecodable_byte_stream():
177-
178177
return (
179178
b"\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00"
180179
b"\x00\x00\x01\x00\xfb\xff~\x00\x08\x00\xfd\xff\x01\x00\x00\x00"

tests/filesystem/test_filesystem.py

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def test_content_mimetype(png_image, jpg_image, undecodable_byte_stream):
2525

2626

2727
def test_content_mimetype_fallback(monkeypatch, undecodable_byte_stream):
28-
2928
# use raw function first to test actual code
3029
assert get_content_mimetype(undecodable_byte_stream) == "application/octet-stream"
3130

tests/logging/test_logging.py

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def test_critical_level(random_id, console):
8080

8181

8282
def test_format():
83-
8483
# assert is_in_log(message, console)
8584
# "[%(asctime)s] %(levelname)s:%(message)s"
8685
pass

tests/ogvjs/test_ogvjs.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
def prepare_ogvjs_folder(tmp_path, videojs_url, ogvjs_url, videojs_ogvjs_url):
16-
1716
videojs_zip = tmp_path / "video-js-7.6.4.zip"
1817
if not videojs_zip.exists():
1918
save_large_file(videojs_url, videojs_zip)

0 commit comments

Comments
 (0)