Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#170)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)
- [github.com/tox-dev/pyproject-fmt: 1.4.1 → 1.5.1](tox-dev/pyproject-fmt@1.4.1...1.5.1)
- [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.5](astral-sh/ruff-pre-commit@v0.1.4...v0.1.5)
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](pre-commit/mirrors-mypy@v1.6.1...v1.7.0)

* [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>
  • Loading branch information
pre-commit-ci[bot] authored Nov 14, 2023
1 parent 97aa0d7 commit 365d230
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.4.1
rev: 1.5.1
hooks:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.1.5
hooks:
- id: ruff

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.0
hooks:
- id: mypy
files: pillow_heif/
Expand Down
1 change: 1 addition & 0 deletions pillow_heif/_deffered_error.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""DeferredError class taken from PIL._util.py file."""


class DeferredError: # pylint: disable=too-few-public-methods
"""Allows failing import for doc purposes, as C module will be not build during docs build."""

Expand Down
10 changes: 4 additions & 6 deletions pillow_heif/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,10 @@ def _finish_add_image(self, im_out, size: tuple, **kwargs):
im_out.set_icc_profile(kwargs.get("icc_profile_type", "prof"), __icc_profile)
elif kwargs.get("nclx_profile", None):
nclx_profile = kwargs["nclx_profile"]
im_out.set_nclx_profile(
*[
nclx_profile[i]
for i in ("color_primaries", "transfer_characteristics", "matrix_coefficients", "full_range_flag")
]
)
im_out.set_nclx_profile(*[
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(
Expand Down

0 comments on commit 365d230

Please sign in to comment.