diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4115e229..568753149 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.3 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.0b5" hooks: - id: isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.4" + rev: "v0.16.3" 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/plotting/tests/test_temperature.py b/colour/plotting/tests/test_temperature.py index 57783a75e..edf74ad99 100644 --- a/colour/plotting/tests/test_temperature.py +++ b/colour/plotting/tests/test_temperature.py @@ -29,7 +29,6 @@ __all__ = [ "TestLinesPlanckianLocus", "TestPlotDaylightLocus", - "TestLinesPlanckianLocus", "TestPlotPlanckianLocus", "TestPlotPlanckianLocusInChromaticityDiagram", "TestPlotPlanckianLocusInChromaticityDiagramCIE1931", 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("]", ")") + ... ), ... }, ... ], ... ) diff --git a/docs/conf.py b/docs/conf.py index e50e983d7..8c37906b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -35,7 +35,7 @@ print(f"Using artifact url: {url}") # noqa: T201 - urllib.request.urlretrieve(url, filename=archive) # noqa: S310 + urllib.request.urlretrieve(url, filename=archive) shutil.unpack_archive(archive, "_static") # -- General configuration ------------------------------------------------