Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 14, 2025
1 parent dd18fac commit f9c4ec4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
5 changes: 0 additions & 5 deletions Tests/test_arrow.py
Original file line number Diff line number Diff line change
@@ -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,
)

Expand Down Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion Tests/test_pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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'",
]
Expand Down

0 comments on commit f9c4ec4

Please sign in to comment.