From 9a3c52e8b0e77c204cd23d25c508c9bb0bea0b2e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 22:22:02 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) - [github.com/PyCQA/isort: 6.0.1 → 9.0.0a3](https://github.com/PyCQA/isort/compare/6.0.1...9.0.0a3) - [github.com/astral-sh/ruff-pre-commit: v0.12.4 → v0.15.14](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.4...v0.15.14) - [github.com/adamchainz/blacken-docs: 1.19.1 → 1.20.0](https://github.com/adamchainz/blacken-docs/compare/1.19.1...1.20.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4115e229..ec79d2dbd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v5.0.0" + rev: "v6.0.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -16,7 +16,7 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell args: @@ -25,17 +25,17 @@ repos: ] exclude: "BIBLIOGRAPHY.bib|CONTRIBUTORS.rst" - repo: https://github.com/PyCQA/isort - rev: "6.0.1" + rev: "9.0.0a3" hooks: - id: isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.4" + rev: "v0.15.14" hooks: - id: ruff-format - id: ruff args: [--fix] - repo: https://github.com/adamchainz/blacken-docs - rev: 1.19.1 + rev: 1.20.0 hooks: - id: blacken-docs language_version: python3.11 From 5878e0a104db0d60917effbad72346b3a8b66942 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 22:22:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- colour/io/tm2714.py | 2 +- colour/models/jzazbz.py | 4 ++-- colour/utilities/tests/test_verbose.py | 6 +++--- colour/utilities/verbose.py | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/colour/io/tm2714.py b/colour/io/tm2714.py index 7d7b89553..15b53f275 100644 --- a/colour/io/tm2714.py +++ b/colour/io/tm2714.py @@ -946,7 +946,7 @@ def __init__( "BandwidthFWHM", "bandwidth_FWHM", read_conversion=( - lambda x: (None if x == "None" else as_float_scalar(x)) + lambda x: None if x == "None" else as_float_scalar(x) ), ), Element_Specification_IESTM2714( diff --git a/colour/models/jzazbz.py b/colour/models/jzazbz.py index 017697254..32f18730f 100644 --- a/colour/models/jzazbz.py +++ b/colour/models/jzazbz.py @@ -379,8 +379,8 @@ def XYZ_to_Jzazbz( Lightness, :math:`a_z` is redness-greenness and :math:`b_z` is yellowness-blueness. - Warnings - -------- + Warnings + -------- The underlying *SMPTE ST 2084:2014* transfer function is an absolute transfer function. diff --git a/colour/utilities/tests/test_verbose.py b/colour/utilities/tests/test_verbose.py index dc050a6c4..e3a793096 100644 --- a/colour/utilities/tests/test_verbose.py +++ b/colour/utilities/tests/test_verbose.py @@ -301,9 +301,9 @@ def __repr__(self) -> str: {"name": "_b"}, { "name": "_c", - "formatter": lambda x: repr(x) - .replace("[", "(") - .replace("]", ")"), + "formatter": lambda x: ( + repr(x).replace("[", "(").replace("]", ")") + ), }, { "name": "_d", diff --git a/colour/utilities/verbose.py b/colour/utilities/verbose.py index 79f4bd0a6..43129394e 100644 --- a/colour/utilities/verbose.py +++ b/colour/utilities/verbose.py @@ -1142,9 +1142,9 @@ def multiline_repr( ... {"name": "_b"}, ... { ... "name": "_c", - ... "formatter": lambda x: repr(x) - ... .replace("[", "(") - ... .replace("]", ")"), + ... "formatter": lambda x: ( + ... repr(x).replace("[", "(").replace("]", ")") + ... ), ... }, ... ], ... )