diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 161342f..7d477a6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,15 +25,15 @@ repos: - id: flynt args: [--verbose] - repo: https://github.com/PyCQA/isort - rev: "5.12.0" + rev: "5.13.2" hooks: - id: isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.6" + rev: "v0.1.14" hooks: - id: ruff - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.11.0 + rev: 24.1.1 hooks: - id: black language_version: python3.9 diff --git a/colour_hdri/models/dng.py b/colour_hdri/models/dng.py index b1f62f4..5c17125 100644 --- a/colour_hdri/models/dng.py +++ b/colour_hdri/models/dng.py @@ -546,21 +546,23 @@ def matrix_camera_space_to_XYZ( analog_balance: ArrayLike, M_forward_matrix_1: ArrayLike, M_forward_matrix_2: ArrayLike, - chromatic_adaptation_transform: Literal[ - "Bianco 2010", - "Bianco PC 2010", - "Bradford", - "CAT02 Brill 2008", - "CAT02", - "CAT16", - "CMCCAT2000", - "CMCCAT97", - "Fairchild", - "Sharp", - "Von Kries", - "XYZ Scaling", - ] - | str = "Bradford", + chromatic_adaptation_transform: ( + Literal[ + "Bianco 2010", + "Bianco PC 2010", + "Bradford", + "CAT02 Brill 2008", + "CAT02", + "CAT16", + "CMCCAT2000", + "CMCCAT97", + "Fairchild", + "Sharp", + "Von Kries", + "XYZ Scaling", + ] + | str + ) = "Bradford", ) -> NDArrayFloat: """ Return the *Camera Space* to *CIE XYZ* matrix for given *xy* white diff --git a/pyproject.toml b/pyproject.toml index e8bb6cd..341ecce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -219,6 +219,9 @@ convention = "numpy" "utilities/*" = ["EXE001", "INP"] "utilities/unicode_to_ascii.py" = ["RUF001"] +[tool.ruff.format] +docstring-code-format = true + [build-system] requires = [ "poetry_core>=1.0.0" ] build-backend = "poetry.core.masonry.api"