Skip to content

Commit 7982f52

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

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

-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/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
@@ -147,19 +147,16 @@ def x(self) -> NDArray: # noqa: D102
147147
...
148148

149149
@x.setter
150-
def x(self, value: ArrayLike):
151-
...
150+
def x(self, value: ArrayLike): ...
152151

153152
@property
154153
def y(self) -> NDArray: # noqa: D102
155154
...
156155

157156
@y.setter
158-
def y(self, value: ArrayLike):
159-
...
157+
def y(self, value: ArrayLike): ...
160158

161-
def __init__(self, *args: Any, **kwargs: Any) -> None:
162-
... # pragma: no cover
159+
def __init__(self, *args: Any, **kwargs: Any) -> None: ... # pragma: no cover
163160

164161
def __call__(self, x: ArrayLike) -> NDArray: # noqa: D102
165162
... # pragma: no cover
@@ -171,11 +168,9 @@ def interpolator(self) -> ProtocolInterpolator: # noqa: D102
171168
...
172169

173170
@interpolator.setter
174-
def interpolator(self, value: ProtocolInterpolator):
175-
...
171+
def interpolator(self, value: ProtocolInterpolator): ...
176172

177-
def __init__(self, *args: Any, **kwargs: Any) -> None:
178-
... # pragma: no cover
173+
def __init__(self, *args: Any, **kwargs: Any) -> None: ... # pragma: no cover
179174

180175
def __call__(self, x: ArrayLike) -> NDArray: # noqa: D102
181176
... # 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

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

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.exponent` 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_filmic_pro.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
:mod:`colour.models.rgb.transfer_functions.filmic_pro` 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_filmlight_t_log.py

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

6-
76
import numpy as np
87

98
from colour.constants import TOLERANCE_ABSOLUTE_TESTS

0 commit comments

Comments
 (0)