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 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("]", ")") + ... ), ... }, ... ], ... )