Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 8, 2024
1 parent 477b390 commit 62dd326
Show file tree
Hide file tree
Showing 97 changed files with 184 additions and 250 deletions.
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
12 changes: 6 additions & 6 deletions colour/colorimetry/datasets/cmfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3287,12 +3287,12 @@ def _CIE_2012_10_Degree_Standard_Observer():
)


MSDS_CMFS_STANDARD_OBSERVER[
"CIE 2012 2 Degree Standard Observer"
] = _CIE_2012_2_Degree_Standard_Observer
MSDS_CMFS_STANDARD_OBSERVER[
"CIE 2012 10 Degree Standard Observer"
] = _CIE_2012_10_Degree_Standard_Observer
MSDS_CMFS_STANDARD_OBSERVER["CIE 2012 2 Degree Standard Observer"] = (
_CIE_2012_2_Degree_Standard_Observer
)
MSDS_CMFS_STANDARD_OBSERVER["CIE 2012 10 Degree Standard Observer"] = (
_CIE_2012_10_Degree_Standard_Observer
)
# ----------------------------------------------------------------------------#

MSDS_CMFS = LazyCanonicalMapping(MSDS_CMFS_LMS)
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
264 changes: 146 additions & 118 deletions colour/colorimetry/datasets/light_sources/chromaticity_coordinates.py

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion colour/colorimetry/tests/test_correction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.colorimetry.correction` module."""


import numpy as np

from colour.colorimetry import (
Expand Down
1 change: 0 additions & 1 deletion colour/colorimetry/tests/test_generation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.colorimetry.generation` module."""


import numpy as np

from colour.colorimetry.generation import (
Expand Down
1 change: 0 additions & 1 deletion colour/colorimetry/tests/test_lefs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.colorimetry.lefs` module."""


import numpy as np

from colour.colorimetry import (
Expand Down
1 change: 0 additions & 1 deletion colour/colorimetry/tests/test_lightness.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.colorimetry.lightness` module."""


import numpy as np

from colour.colorimetry import (
Expand Down
1 change: 0 additions & 1 deletion colour/colorimetry/tests/test_luminance.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.colorimetry.luminance` module."""


import numpy as np

from colour.colorimetry import (
Expand Down
1 change: 0 additions & 1 deletion colour/colorimetry/tests/test_photometry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.colorimetry.photometry` module."""


import numpy as np

from colour.colorimetry import (
Expand Down
1 change: 0 additions & 1 deletion colour/colorimetry/tests/test_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module.
"""


import numpy as np

from colour.colorimetry import (
Expand Down
1 change: 0 additions & 1 deletion colour/continuous/tests/test_abstract.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.continuous.abstract` module."""


from colour.continuous import AbstractContinuousFunction

__author__ = "Colour Developers"
Expand Down
6 changes: 3 additions & 3 deletions colour/corresponding/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,9 @@ def corresponding_chromaticities_prediction_Zhai2018(
- 'vonkries': 'Von Kries'
"""
CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS[
"vonkries"
] = CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS["Von Kries"]
CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS["vonkries"] = (
CORRESPONDING_CHROMATICITIES_PREDICTION_MODELS["Von Kries"]
)


def corresponding_chromaticities_prediction(
Expand Down
1 change: 0 additions & 1 deletion colour/difference/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.difference` module."""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/difference/tests/test_cam16_ucs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.difference.cam16_ucs` module."""


from colour.difference.tests.test_cam02_ucs import TestDelta_E_Luo2006

__author__ = "Colour Developers"
Expand Down
1 change: 0 additions & 1 deletion colour/difference/tests/test_huang2015.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.difference.huang2015` module."""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/difference/tests/test_stress.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.difference.stress` module."""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/geometry/tests/test_ellipse.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.geometry.ellipse` module."""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/geometry/tests/test_intersection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.geometry.intersection` module."""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/geometry/tests/test_primitives.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.geometry.primitives` module."""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/geometry/tests/test_section.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.geometry.section` module."""


import numpy as np
import pytest

Expand Down
1 change: 0 additions & 1 deletion colour/geometry/tests/test_vertices.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.geometry.vertices` module."""


import numpy as np
import pytest

Expand Down
1 change: 0 additions & 1 deletion colour/graph/tests/test_conversion.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.graph.conversion` module."""


import numpy as np
import pytest

Expand Down
15 changes: 5 additions & 10 deletions colour/hints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,16 @@ def x(self) -> NDArray: # noqa: D102
...

@x.setter
def x(self, value: ArrayLike):
...
def x(self, value: ArrayLike): ...

@property
def y(self) -> NDArray: # noqa: D102
...

@y.setter
def y(self, value: ArrayLike):
...
def y(self, value: ArrayLike): ...

def __init__(self, *args: Any, **kwargs: Any) -> None:
... # pragma: no cover
def __init__(self, *args: Any, **kwargs: Any) -> None: ... # pragma: no cover

def __call__(self, x: ArrayLike) -> NDArray: # noqa: D102
... # pragma: no cover
Expand All @@ -173,11 +170,9 @@ def interpolator(self) -> ProtocolInterpolator: # noqa: D102
...

@interpolator.setter
def interpolator(self, value: ProtocolInterpolator):
...
def interpolator(self, value: ProtocolInterpolator): ...

def __init__(self, *args: Any, **kwargs: Any) -> None:
... # pragma: no cover
def __init__(self, *args: Any, **kwargs: Any) -> None: ... # pragma: no cover

def __call__(self, x: ArrayLike) -> NDArray: # noqa: D102
... # pragma: no cover
Expand Down
1 change: 0 additions & 1 deletion colour/io/luts/tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.io.luts.common` module."""


from colour.io.luts.common import path_to_title

__author__ = "Colour Developers"
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.models.rgb.common` module."""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/tests/test_itut_h_273.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Define the unit tests for the :mod:`colour.models.rgb.itut_h_273` module."""


from colour.models import (
describe_video_signal_colour_primaries,
describe_video_signal_matrix_coefficients,
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/transfer_functions/tests/test__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:mod:`colour.models.rgb.transfer_functions.common` module.
"""


import numpy as np
import pytest

Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/transfer_functions/tests/test_aces.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
apple_log_profile` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:mod:`colour.models.rgb.transfer_functions.arib_std_b67` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/transfer_functions/tests/test_arri.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:mod:`colour.models.rgb.transfer_functions.arri` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
blackmagic_design` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/transfer_functions/tests/test_canon.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:mod:`colour.models.rgb.transfer_functions.canon` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/transfer_functions/tests/test_cineon.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:mod:`colour.models.rgb.transfer_functions.cineon` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/transfer_functions/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:mod:`colour.models.rgb.transfer_functions.common` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
davinci_intermediate` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
1 change: 0 additions & 1 deletion colour/models/rgb/transfer_functions/tests/test_dcdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:mod:`colour.models.rgb.transfer_functions.dicom_gsdf` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
dji_d_log` module.
"""


import numpy as np

from colour.constants import TOLERANCE_ABSOLUTE_TESTS
Expand Down
Loading

0 comments on commit 62dd326

Please sign in to comment.