[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-02-18 19:56:39 +00:00
parent a0927be178
commit 9021829f7e
3 changed files with 4 additions and 10 deletions

View File

@ -1,14 +1,10 @@
from __future__ import annotations
from typing import Any # undone
import pytest
from PIL import Image
from .helper import (
assert_deep_equal,
assert_image_equal,
hopper,
)
@ -43,7 +39,6 @@ def test_invalid_array_size():
Image.fromarrow(img, "RGB", (10, 10))
def test_release_schema():
# these should not error out, valgrind should be clean
img = hopper("L")

View File

@ -69,7 +69,6 @@ def test_to_array(mode: str, dtype: Any, mask: Any) -> None:
assert_image_equal(img, reloaded)
def test_lifetime():
# valgrind shouldn't error out here.
# arrays should be accessible after the image is deleted.

View File

@ -54,6 +54,10 @@ optional-dependencies.fpx = [
optional-dependencies.mic = [
"olefile",
]
optional-dependencies.test-arrow = [
"pyarrow",
]
optional-dependencies.tests = [
"check-manifest",
"coverage>=7.4.2",
@ -68,10 +72,6 @@ optional-dependencies.tests = [
"trove-classifiers>=2024.10.12",
]
optional-dependencies.test-arrow = [
"pyarrow",
]
optional-dependencies.typing = [
"typing-extensions; python_version<'3.10'",
]