Skip to content

Commit 2699489

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b5810d9 commit 2699489

File tree

95 files changed

+177
-242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+177
-242
lines changed

colour/adaptation/tests/test__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.adaptation` module."""
22

3-
43
import numpy as np
54

65
from colour.adaptation import chromatic_adaptation

colour/algebra/tests/test_regression.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.algebra.regression` module."""
22

3-
43
import numpy as np
54

65
from colour.algebra import least_square_mapping_MoorePenrose

colour/blindness/tests/test_machado2009.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.blindness.machado2009` module."""
22

3-
43
import numpy as np
54

65
from colour.blindness import (

colour/colorimetry/datasets/illuminants/chromaticity_coordinates.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@
190190
:cite:`TheAcademyofMotionPictureArtsandSciences2014q`
191191
"""
192192

193-
CCS_ILLUMINANTS_BLACKMAGIC_DESIGN_STANDARD_OBSERVER_2_DEGREE_CIE1931: (
194-
CanonicalMapping
195-
) = CanonicalMapping(
193+
CCS_ILLUMINANTS_BLACKMAGIC_DESIGN_STANDARD_OBSERVER_2_DEGREE_CIE1931: CanonicalMapping = CanonicalMapping(
196194
{
197195
"Blackmagic Wide Gamut": np.array([0.3127170, 0.3290312]),
198196
}

colour/colorimetry/datasets/illuminants/hunterlab.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@
6060
("UL 3000", np.array([107.99, 100.00, 33.91]), np.array([183.70, 37.50])),
6161
)
6262

63-
TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931: (
64-
CanonicalMapping
65-
) = CanonicalMapping(
66-
{
67-
x[0]: Illuminant_Specification_HunterLab(*x)
68-
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931
69-
}
63+
TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931: CanonicalMapping = (
64+
CanonicalMapping(
65+
{
66+
x[0]: Illuminant_Specification_HunterLab(*x)
67+
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_2_DEGREE_CIE1931
68+
}
69+
)
7070
)
7171
"""
7272
*CIE XYZ* tristimulus values of the *Hunter L,a,b* illuminants for the
@@ -89,13 +89,13 @@
8989
("UL 3000", np.array([111.12, 100.00, 35.21]), np.array([186.30, 38.20])),
9090
)
9191

92-
TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964: (
93-
CanonicalMapping
94-
) = CanonicalMapping(
95-
{
96-
x[0]: Illuminant_Specification_HunterLab(*x)
97-
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964
98-
}
92+
TVS_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964: CanonicalMapping = (
93+
CanonicalMapping(
94+
{
95+
x[0]: Illuminant_Specification_HunterLab(*x)
96+
for x in DATA_ILLUMINANTS_HUNTERLAB_STANDARD_OBSERVER_10_DEGREE_CIE1964
97+
}
98+
)
9999
)
100100
"""
101101
*CIE XYZ* tristimulus values of the *Hunter L,a,b* illuminants for the

colour/colorimetry/datasets/light_sources/chromaticity_coordinates.py

Lines changed: 146 additions & 118 deletions
Large diffs are not rendered by default.

colour/colorimetry/tests/test_correction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.colorimetry.correction` module."""
22

3-
43
import numpy as np
54

65
from colour.colorimetry import (

colour/colorimetry/tests/test_generation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.colorimetry.generation` module."""
22

3-
43
import numpy as np
54

65
from colour.colorimetry.generation import (

colour/colorimetry/tests/test_lefs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.colorimetry.lefs` module."""
22

3-
43
import numpy as np
54

65
from colour.colorimetry import (

colour/colorimetry/tests/test_lightness.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.colorimetry.lightness` module."""
22

3-
43
import numpy as np
54

65
from colour.colorimetry import (

0 commit comments

Comments
 (0)