Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1080

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -16,7 +16,7 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: ["--ignore-words-list=co-ordinates,exitance,fro,hart,ist"]
Expand All @@ -31,17 +31,17 @@ repos:
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.14"
rev: "v0.8.2"
hooks:
- id: ruff-format
- id: ruff
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
rev: 1.19.1
hooks:
- id: blacken-docs
language_version: python3.10
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
exclude: config-aces-reference.ocio.yaml
Expand Down
1 change: 0 additions & 1 deletion colour/adaptation/tests/test__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.adaptation` module."""


import numpy as np

from colour.adaptation import chromatic_adaptation
Expand Down
1 change: 0 additions & 1 deletion colour/algebra/tests/test_regression.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.algebra.regression` module."""


import numpy as np

from colour.algebra import least_square_mapping_MoorePenrose
Expand Down
1 change: 0 additions & 1 deletion colour/blindness/tests/test_machado2009.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.blindness.machado2009` module."""


import numpy as np

from colour.blindness import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@
:cite:`TheAcademyofMotionPictureArtsandSciences2014q`
"""

CCS_ILLUMINANTS_BLACKMAGIC_DESIGN_STANDARD_OBSERVER_2_DEGREE_CIE1931: (
CanonicalMapping
) = CanonicalMapping(
CCS_ILLUMINANTS_BLACKMAGIC_DESIGN_STANDARD_OBSERVER_2_DEGREE_CIE1931: CanonicalMapping = CanonicalMapping(
{
"Blackmagic Wide Gamut": np.array([0.3127170, 0.3290312]),
}
Expand Down
28 changes: 14 additions & 14 deletions colour/colorimetry/datasets/illuminants/hunterlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
("UL 3000", np.array([107.99, 100.00, 33.91]), np.array([183.70, 37.50])),
)

TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931: (
CanonicalMapping
) = CanonicalMapping(
{
x[0]: Illuminant_Specification_HunterLab(*x)
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931
}
TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931: CanonicalMapping = (
CanonicalMapping(
{
x[0]: Illuminant_Specification_HunterLab(*x)
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931
}
)
)
"""
*CIE XYZ* tristimulus values of the *Hunter L,a,b* illuminants for the
Expand All @@ -89,13 +89,13 @@
("UL 3000", np.array([111.12, 100.00, 35.21]), np.array([186.30, 38.20])),
)

TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964: (
CanonicalMapping
) = CanonicalMapping(
{
x[0]: Illuminant_Specification_HunterLab(*x)
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964
}
TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964: CanonicalMapping = (
CanonicalMapping(
{
x[0]: Illuminant_Specification_HunterLab(*x)
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964
}
)
)
"""
*CIE XYZ* tristimulus values of the *Hunter L,a,b* illuminants for the
Expand Down
Loading
Loading