Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/generate-sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ def generate(version: str) -> dict:
("PIL._avif", "AVIF image format extension"),
(
"PIL._imaging",
"Core image processing extension "
"(decode, encode, map, display, outline, path, libImaging)",
(
"Core image processing extension "
"(decode, encode, map, display, outline, path, libImaging)"
),
),
("PIL._imagingcms", "LittleCMS2 colour management extension"),
("PIL._imagingft", "FreeType font rendering extension"),
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
rev: v0.16.1
hooks:
- id: ruff-check
args: [--exit-non-zero-on-fix]
Expand All @@ -24,7 +24,7 @@ repos:
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$|\.patch$)

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.5
rev: v22.1.8
hooks:
- id: clang-format
types: [c]
Expand Down Expand Up @@ -61,7 +61,7 @@ repos:
- id: check-renovate

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.26.1
rev: v1.29.0
hooks:
- id: zizmor

Expand All @@ -71,7 +71,7 @@ repos:
- id: sphinx-lint

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.25.1
rev: v2.26.0
hooks:
- id: pyproject-fmt

Expand All @@ -82,7 +82,7 @@ repos:
additional_dependencies: [trove-classifiers>=2024.10.12]

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.7.1
rev: 1.8.1
hooks:
- id: tox-ini-fmt

Expand Down
12 changes: 8 additions & 4 deletions Tests/test_deprecate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
[
(
14,
"Old thing is deprecated and will be removed in Pillow 14 "
r"\(2027-10-15\)\. Use new thing instead\.",
(
"Old thing is deprecated and will be removed in Pillow 14 "
r"\(2027-10-15\)\. Use new thing instead\."
),
),
(
None,
r"Old thing is deprecated and will be removed in a future version\. "
r"Use new thing instead\.",
(
r"Old thing is deprecated and will be removed in a future version\. "
r"Use new thing instead\."
),
),
],
)
Expand Down
6 changes: 4 additions & 2 deletions Tests/test_file_ppm.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def test_sanity() -> None:
),
# P6 with maxval > 255
(
b"P6 3 1 257 \x00\x00\x00\x01\x00\x02"
b"\x00\x80\x00\x81\x00\x82\x01\x00\x01\x01\xff\xff",
(
b"P6 3 1 257 \x00\x00\x00\x01\x00\x02"
b"\x00\x80\x00\x81\x00\x82\x01\x00\x01\x01\xff\xff"
),
"RGB",
(
(0, 1, 2),
Expand Down
6 changes: 4 additions & 2 deletions Tests/test_imagedraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1670,8 +1670,10 @@ def test_compute_regular_polygon_vertices(
(50, 50, 100, 100),
0,
ValueError,
"bounding_circle should contain 2D coordinates "
r"and a radius \(e.g. \(x, y, r\) or \(\(x, y\), r\) \)",
(
"bounding_circle should contain 2D coordinates "
r"and a radius \(e.g. \(x, y, r\) or \(\(x, y\), r\) \)"
),
),
(
3,
Expand Down
10 changes: 6 additions & 4 deletions Tests/test_imagegrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ def test_grab_handle(self) -> None:
[
"osascript",
"-e",
'tell application "Finder"\n'
'open ("/" as POSIX file)\n'
"get id of front window\n"
"end tell",
(
'tell application "Finder"\n'
'open ("/" as POSIX file)\n'
"get id of front window\n"
"end tell"
),
],
stdout=subprocess.PIPE,
)
Expand Down