Skip to content

Commit a446e0c

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

File tree

96 files changed

+183
-248
lines changed

Some content is hidden

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

96 files changed

+183
-248
lines changed

colour/adaptation/tests/test__init__.py

-1
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

-1
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

-1
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/cmfs.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -3287,12 +3287,12 @@ def _CIE_2012_10_Degree_Standard_Observer():
32873287
)
32883288

32893289

3290-
MSDS_CMFS_STANDARD_OBSERVER[
3291-
"CIE 2012 2 Degree Standard Observer"
3292-
] = _CIE_2012_2_Degree_Standard_Observer
3293-
MSDS_CMFS_STANDARD_OBSERVER[
3294-
"CIE 2012 10 Degree Standard Observer"
3295-
] = _CIE_2012_10_Degree_Standard_Observer
3290+
MSDS_CMFS_STANDARD_OBSERVER["CIE 2012 2 Degree Standard Observer"] = (
3291+
_CIE_2012_2_Degree_Standard_Observer
3292+
)
3293+
MSDS_CMFS_STANDARD_OBSERVER["CIE 2012 10 Degree Standard Observer"] = (
3294+
_CIE_2012_10_Degree_Standard_Observer
3295+
)
32963296
# ----------------------------------------------------------------------------#
32973297

32983298
MSDS_CMFS = LazyCanonicalMapping(MSDS_CMFS_LMS)

colour/colorimetry/datasets/illuminants/chromaticity_coordinates.py

+1-3
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

+14-14
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

+146-118
Large diffs are not rendered by default.

colour/colorimetry/tests/test_correction.py

-1
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

-1
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

-1
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

-1
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 (

colour/colorimetry/tests/test_luminance.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.colorimetry.luminance` module."""
22

3-
43
import numpy as np
54

65
from colour.colorimetry import (

colour/colorimetry/tests/test_photometry.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.colorimetry.photometry` module."""
22

3-
43
import numpy as np
54

65
from colour.colorimetry import (

colour/colorimetry/tests/test_transformations.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.colorimetry import (

colour/continuous/tests/test_abstract.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.continuous.abstract` module."""
22

3-
43
from colour.continuous import AbstractContinuousFunction
54

65
__author__ = "Colour Developers"

colour/corresponding/prediction.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,9 @@ def corresponding_chromaticities_prediction_Zhai2018(
685685
686686
- 'vonkries': 'Von Kries'
687687
"""
688-
CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS[
689-
"vonkries"
690-
] = CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS["Von Kries"]
688+
CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS["vonkries"] = (
689+
CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS["Von Kries"]
690+
)
691691

692692

693693
def corresponding_chromaticities_prediction(

colour/difference/tests/test__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.difference` module."""
22

3-
43
import numpy as np
54

65
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/difference/tests/test_cam16_ucs.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.difference.cam16_ucs` module."""
22

3-
43
from colour.difference.tests.test_cam02_ucs import TestDelta_E_Luo2006
54

65
__author__ = "Colour Developers"

colour/difference/tests/test_huang2015.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.difference.huang2015` module."""
22

3-
43
import numpy as np
54

65
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/difference/tests/test_stress.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.difference.stress` module."""
22

3-
43
import numpy as np
54

65
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/geometry/tests/test_ellipse.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.geometry.ellipse` module."""
22

3-
43
import numpy as np
54

65
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/geometry/tests/test_intersection.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.geometry.intersection` module."""
22

3-
43
import numpy as np
54

65
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/geometry/tests/test_primitives.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.geometry.primitives` module."""
22

3-
43
import numpy as np
54

65
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/geometry/tests/test_section.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.geometry.section` module."""
22

3-
43
import numpy as np
54
import pytest
65

colour/geometry/tests/test_vertices.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.geometry.vertices` module."""
22

3-
43
import numpy as np
54
import pytest
65

colour/graph/tests/test_conversion.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.graph.conversion` module."""
22

3-
43
import numpy as np
54
import pytest
65

colour/hints/__init__.py

+5-10
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,16 @@ def x(self) -> NDArray: # noqa: D102
151151
...
152152

153153
@x.setter
154-
def x(self, value: ArrayLike):
155-
...
154+
def x(self, value: ArrayLike): ...
156155

157156
@property
158157
def y(self) -> NDArray: # noqa: D102
159158
...
160159

161160
@y.setter
162-
def y(self, value: ArrayLike):
163-
...
161+
def y(self, value: ArrayLike): ...
164162

165-
def __init__(self, *args: Any, **kwargs: Any) -> None:
166-
... # pragma: no cover
163+
def __init__(self, *args: Any, **kwargs: Any) -> None: ... # pragma: no cover
167164

168165
def __call__(self, x: ArrayLike) -> NDArray: # noqa: D102
169166
... # pragma: no cover
@@ -175,11 +172,9 @@ def interpolator(self) -> ProtocolInterpolator: # noqa: D102
175172
...
176173

177174
@interpolator.setter
178-
def interpolator(self, value: ProtocolInterpolator):
179-
...
175+
def interpolator(self, value: ProtocolInterpolator): ...
180176

181-
def __init__(self, *args: Any, **kwargs: Any) -> None:
182-
... # pragma: no cover
177+
def __init__(self, *args: Any, **kwargs: Any) -> None: ... # pragma: no cover
183178

184179
def __call__(self, x: ArrayLike) -> NDArray: # noqa: D102
185180
... # pragma: no cover

colour/io/luts/tests/test_common.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.io.luts.common` module."""
22

3-
43
from colour.io.luts.common import path_to_title
54

65
__author__ = "Colour Developers"

colour/models/rgb/tests/test_common.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.models.rgb.common` module."""
22

3-
43
import numpy as np
54

65
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/tests/test_itut_h_273.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Define the unit tests for the :mod:`colour.models.rgb.itut_h_273` module."""
22

3-
43
from colour.models import (
54
describe_video_signal_colour_primaries,
65
describe_video_signal_matrix_coefficients,

colour/models/rgb/transfer_functions/tests/test__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.common` module.
44
"""
55

6-
76
import numpy as np
87
import pytest
98

colour/models/rgb/transfer_functions/tests/test_aces.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_apple_log_profile.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
apple_log_profile` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_arib_std_b67.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.arib_std_b67` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_arri.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.arri` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_blackmagic_design.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
blackmagic_design` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_canon.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.canon` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_cineon.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.cineon` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_common.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.common` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
davinci_intermediate` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_dcdm.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.dicom_gsdf` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

colour/models/rgb/transfer_functions/tests/test_dji_d_log.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
dji_d_log` module.
44
"""
55

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

0 commit comments

Comments
 (0)