diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5dd89e34..d17ed58c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 24.2.0 hooks: - id: black @@ -29,7 +29,7 @@ repos: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.0 + rev: v0.2.1 hooks: - id: ruff diff --git a/pillow_heif/misc.py b/pillow_heif/misc.py index 5d626f34..646745e5 100644 --- a/pillow_heif/misc.py +++ b/pillow_heif/misc.py @@ -378,10 +378,12 @@ def _finish_add_image(self, im_out, size: tuple, **kwargs): im_out.set_icc_profile(kwargs.get("icc_profile_type", "prof"), __icc_profile) # set NCLX color profile if kwargs.get("nclx_profile", None): - im_out.set_nclx_profile(*[ - kwargs["nclx_profile"][i] - for i in ("color_primaries", "transfer_characteristics", "matrix_coefficients", "full_range_flag") - ]) + im_out.set_nclx_profile( + *[ + kwargs["nclx_profile"][i] + for i in ("color_primaries", "transfer_characteristics", "matrix_coefficients", "full_range_flag") + ] + ) # encode image_orientation = kwargs.get("image_orientation", 1) im_out.encode(