Skip to content

Commit

Permalink
Disable isort glob.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Dec 12, 2024
1 parent d3ed1cd commit bca1ff5
Show file tree
Hide file tree
Showing 45 changed files with 92 additions and 10 deletions.
2 changes: 2 additions & 0 deletions colour/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
- volume: Colourspace volumes computation and optimal colour stimuli.
"""

# isort: skip_file

import contextlib
import json
import os
Expand Down
2 changes: 2 additions & 0 deletions colour/adaptation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
Express, 26(6), 7724. doi:10.1364/OE.26.007724
"""

# isort: skip_file

from __future__ import annotations

from colour.hints import Any, ArrayLike, Literal, NDArrayFloat
Expand Down
2 changes: 2 additions & 0 deletions colour/adaptation/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .cat import CHROMATIC_ADAPTATION_TRANSFORMS
from .cat import (
CAT_XYZ_SCALING,
Expand Down
2 changes: 2 additions & 0 deletions colour/algebra/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

import sys

from colour.utilities.deprecation import ModuleAPI, build_API_changes
Expand Down
2 changes: 2 additions & 0 deletions colour/algebra/coordinates/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .transformations import (
cartesian_to_spherical,
spherical_to_cartesian,
Expand Down
2 changes: 2 additions & 0 deletions colour/appearance/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .hunt import (
InductionFactors_Hunt,
VIEWING_CONDITIONS_HUNT,
Expand Down
2 changes: 2 additions & 0 deletions colour/biochemistry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .michaelis_menten import (
REACTION_RATE_MICHAELISMENTEN_METHODS,
reaction_rate_MichaelisMenten,
Expand Down
2 changes: 2 additions & 0 deletions colour/blindness/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .datasets import * # noqa: F403
from . import datasets
from .machado2009 import (
Expand Down
2 changes: 2 additions & 0 deletions colour/characterisation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .cameras import RGB_CameraSensitivities
from .displays import RGB_DisplayPrimaries
from .datasets import * # noqa: F403
Expand Down
2 changes: 2 additions & 0 deletions colour/characterisation/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .aces_it import MSDS_ACES_RICD
from .cameras import MSDS_CAMERA_SENSITIVITIES
from .colour_checkers import (
Expand Down
3 changes: 2 additions & 1 deletion colour/characterisation/datasets/cameras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

from __future__ import annotations

from .dslr import MSDS_CAMERA_SENSITIVITIES_DSLR
from colour.utilities import LazyCanonicalMapping

from .dslr import MSDS_CAMERA_SENSITIVITIES_DSLR

MSDS_CAMERA_SENSITIVITIES: LazyCanonicalMapping = LazyCanonicalMapping(
MSDS_CAMERA_SENSITIVITIES_DSLR
)
Expand Down
3 changes: 2 additions & 1 deletion colour/characterisation/datasets/displays/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
http://www.lume.ufrgs.br/handle/10183/26950
"""

from colour.utilities import LazyCanonicalMapping

from .crt import MSDS_DISPLAY_PRIMARIES_CRT
from .lcd import MSDS_DISPLAY_PRIMARIES_LCD
from colour.utilities import LazyCanonicalMapping

MSDS_DISPLAY_PRIMARIES = LazyCanonicalMapping(MSDS_DISPLAY_PRIMARIES_CRT)
MSDS_DISPLAY_PRIMARIES.update(MSDS_DISPLAY_PRIMARIES_LCD)
Expand Down
2 changes: 2 additions & 0 deletions colour/colorimetry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .spectrum import (
SpectralShape,
SPECTRAL_SHAPE_DEFAULT,
Expand Down
2 changes: 2 additions & 0 deletions colour/colorimetry/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .cmfs import (
MSDS_CMFS,
MSDS_CMFS_LMS,
Expand Down
2 changes: 2 additions & 0 deletions colour/colorimetry/datasets/illuminants/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .chromaticity_coordinates import CCS_ILLUMINANTS
from .sds_d_illuminant_series import (
SDS_BASIS_FUNCTIONS_CIE_ILLUMINANT_D_SERIES,
Expand Down
2 changes: 2 additions & 0 deletions colour/constants/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .cie import CONSTANT_K_M, CONSTANT_KP_M
from .codata import (
CONSTANT_AVOGADRO,
Expand Down
2 changes: 2 additions & 0 deletions colour/continuous/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .abstract import AbstractContinuousFunction
from .signal import Signal
from .multi_signals import MultiSignals
Expand Down
2 changes: 2 additions & 0 deletions colour/contrast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
https://www.itu.int/dms_pub/itu-r/opb/rep/R-REP-BT.2246-4-2015-PDF-E.pdf
"""

# isort: skip_file

from __future__ import annotations

from colour.hints import NDArrayFloat, Literal
Expand Down
2 changes: 2 additions & 0 deletions colour/corresponding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .datasets import * # noqa: F403
from . import datasets
from .prediction import (
Expand Down
2 changes: 2 additions & 0 deletions colour/corresponding/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .breneman1987 import (
BRENEMAN_EXPERIMENTS,
BRENEMAN_EXPERIMENT_PRIMARIES_CHROMATICITIES,
Expand Down
2 changes: 2 additions & 0 deletions colour/difference/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
August 29, 2014, from http://en.wikipedia.org/wiki/Color_difference
"""

# isort: skip_file

from __future__ import annotations

from colour.hints import Any, ArrayLike, NDArrayFloat, LiteralDeltaEMethod
Expand Down
2 changes: 2 additions & 0 deletions colour/geometry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .ellipse import (
ellipse_coefficients_general_form,
ellipse_coefficients_canonical_form,
Expand Down
2 changes: 2 additions & 0 deletions colour/graph/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .conversion import (
CONVERSION_GRAPH,
CONVERSION_GRAPH_NODE_LABELS,
Expand Down
11 changes: 6 additions & 5 deletions colour/hints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

from __future__ import annotations

import numpy as np
import re
from numpy.typing import ArrayLike, NDArray
from collections.abc import Generator, Iterable, Iterator, Mapping, Sequence
from types import ModuleType
from typing import ( # noqa: UP035
TYPE_CHECKING,
Any,
Callable,
ClassVar,
Expand All @@ -24,17 +24,18 @@
Protocol,
Set,
SupportsIndex,
TYPE_CHECKING,
TextIO,
Tuple,
Type,
TypeVar,
TypedDict,
TypeVar,
cast,
overload,
runtime_checkable,
)
from collections.abc import Generator, Iterable, Iterator, Mapping, Sequence

import numpy as np
from numpy.typing import ArrayLike, NDArray
from typing_extensions import Self

__author__ = "Colour Developers"
Expand Down
2 changes: 2 additions & 0 deletions colour/io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

import sys

from colour.utilities.deprecation import ModuleAPI, build_API_changes
Expand Down
2 changes: 2 additions & 0 deletions colour/io/luts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
https://sourceforge.net/projects/cinespacelutlib/
"""

# isort: skip_file

from __future__ import annotations

import os
Expand Down
2 changes: 2 additions & 0 deletions colour/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

import sys

from colour.utilities import copy_definition
Expand Down
2 changes: 2 additions & 0 deletions colour/models/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .macadam_ellipses import DATA_MACADAM_1942_ELLIPSES
from .pointer_gamut import (
CCS_ILLUMINANT_POINTER_GAMUT,
Expand Down
2 changes: 2 additions & 0 deletions colour/models/rgb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .derivation import (
normalised_primary_matrix,
chromatically_adapted_primaries,
Expand Down
2 changes: 2 additions & 0 deletions colour/models/rgb/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from __future__ import annotations

from colour.utilities import LazyCanonicalMapping
Expand Down
2 changes: 2 additions & 0 deletions colour/models/rgb/transfer_functions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from __future__ import annotations

from functools import partial
Expand Down
2 changes: 2 additions & 0 deletions colour/notation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .datasets import (
CSS_COLOR_3_BASIC,
CSS_COLOR_3_EXTENDED,
Expand Down
2 changes: 2 additions & 0 deletions colour/notation/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .css_color_3 import CSS_COLOR_3_BASIC, CSS_COLOR_3_EXTENDED, CSS_COLOR_3
from .munsell import (
MUNSELL_COLOURS_ALL,
Expand Down
3 changes: 2 additions & 1 deletion colour/notation/datasets/munsell/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from colour.utilities import CanonicalMapping

from .all import MUNSELL_COLOURS_ALL
from .experimental import MUNSELL_COLOURS_1929
from .real import MUNSELL_COLOURS_REAL
from colour.utilities import CanonicalMapping

__all__ = [
"MUNSELL_COLOURS_ALL",
Expand Down
2 changes: 2 additions & 0 deletions colour/phenomena/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .rayleigh import (
scattering_cross_section,
rayleigh_optical_depth,
Expand Down
2 changes: 2 additions & 0 deletions colour/plotting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from colour.utilities import is_matplotlib_installed

if not is_matplotlib_installed(): # pragma: no cover
Expand Down
2 changes: 2 additions & 0 deletions colour/plotting/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .astm_g_173 import (
SD_ASTMG173_ETR,
SD_ASTMG173_GLOBAL_TILT,
Expand Down
2 changes: 2 additions & 0 deletions colour/plotting/tm3018/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .report import (
plot_single_sd_colour_rendition_report_full,
plot_single_sd_colour_rendition_report_intermediate,
Expand Down
2 changes: 2 additions & 0 deletions colour/quality/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from __future__ import annotations

from colour.colorimetry import SpectralDistribution
Expand Down
3 changes: 2 additions & 1 deletion colour/recovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
doi:10.1080/10867651.1999.10487511
"""

from __future__ import annotations
# isort: skip_file

from __future__ import annotations

from colour.colorimetry import SpectralDistribution
from colour.hints import Any, ArrayLike, Literal
Expand Down
2 changes: 2 additions & 0 deletions colour/recovery/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .dyer2017 import (
SPECTRAL_SHAPE_BASIS_FUNCTIONS_DYER2017,
BASIS_FUNCTIONS_DYER2017,
Expand Down
2 changes: 2 additions & 0 deletions colour/temperature/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
ISBN:978-0-471-39918-6
"""

# isort: skip_file

from __future__ import annotations

from colour.hints import Any, ArrayLike, NDArrayFloat, Literal
Expand Down
2 changes: 2 additions & 0 deletions colour/utilities/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from __future__ import annotations

import sys
Expand Down
2 changes: 2 additions & 0 deletions colour/volume/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# isort: skip_file

from .datasets import * # noqa: F403
from . import datasets
from .macadam_limits import is_within_macadam_limits
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ force_grid_wrap = 0
include_trailing_comma = true
line_length = 88
multi_line_output = 3
skip_glob = ["colour/**/__init__.py"]
split_on_trailing_comma = true
use_parentheses = true

Expand Down

0 comments on commit bca1ff5

Please sign in to comment.