Skip to content

Commit ab16f0a

Browse files
[pre-commit.ci] pre-commit autoupdate (#210)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 24.1.1 → 24.2.0](psf/black@24.1.1...24.2.0) - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.2.1](astral-sh/ruff-pre-commit@v0.2.0...v0.2.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent be2003c commit ab16f0a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: isort
2020

2121
- repo: https://github.com/psf/black
22-
rev: 24.1.1
22+
rev: 24.2.0
2323
hooks:
2424
- id: black
2525

@@ -29,7 +29,7 @@ repos:
2929
- id: pyproject-fmt
3030

3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: v0.2.0
32+
rev: v0.2.1
3333
hooks:
3434
- id: ruff
3535

pillow_heif/misc.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,12 @@ def _finish_add_image(self, im_out, size: tuple, **kwargs):
378378
im_out.set_icc_profile(kwargs.get("icc_profile_type", "prof"), __icc_profile)
379379
# set NCLX color profile
380380
if kwargs.get("nclx_profile", None):
381-
im_out.set_nclx_profile(*[
382-
kwargs["nclx_profile"][i]
383-
for i in ("color_primaries", "transfer_characteristics", "matrix_coefficients", "full_range_flag")
384-
])
381+
im_out.set_nclx_profile(
382+
*[
383+
kwargs["nclx_profile"][i]
384+
for i in ("color_primaries", "transfer_characteristics", "matrix_coefficients", "full_range_flag")
385+
]
386+
)
385387
# encode
386388
image_orientation = kwargs.get("image_orientation", 1)
387389
im_out.encode(

0 commit comments

Comments
 (0)