-
-
Notifications
You must be signed in to change notification settings - Fork 265
/
Copy pathpyproject.toml
204 lines (191 loc) · 6.07 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[project]
name = "colour-science"
version = "0.4.6"
description = "Colour Science for Python"
readme = "README.rst"
requires-python = ">=3.10,<3.14"
authors = [
{ name = "Colour Developers", email = "[email protected]" },
]
maintainers = [
{ name = "Colour Developers", email = "[email protected]" }
]
license = { text = "BSD-3-Clause" }
keywords = [
"color",
"color-science",
"color-space",
"color-spaces",
"colorspace",
"colorspaces",
"colour",
"colour-science",
"colour-space",
"colour-spaces",
"colourspace",
"colourspaces",
"data",
"dataset",
"datasets",
"python",
"spectral-data",
"spectral-dataset",
"spectral-datasets",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"imageio>=2,<3",
"numpy>=1.24,<3",
"scipy>=1.10,<2",
"typing-extensions>=4,<5",
]
[project.optional-dependencies]
optional = [
"matplotlib>=3.7",
"networkx>=3,<4",
"opencolorio>=2,<3",
"pandas>=2,<3",
"pydot>=3,<4",
"tqdm>=4,<5",
"xxhash>=3,<4",
]
docs = [
"biblib-simple",
"pydata-sphinx-theme",
"restructuredtext-lint",
"sphinx",
"sphinxcontrib-bibtex",
]
meshing = [
"trimesh>=4,<5",
]
[project.urls]
Homepage = "https://www.colour-science.org"
Documentation = "https://colour.readthedocs.org"
Repository = "https://github.com/colour-science/colour"
Issues = "https://github.com/colour-science/colour/issues"
Changelog = "https://github.com/colour-science/colour/releases"
[tool.uv]
package = true
dev-dependencies = [
"coverage",
"coveralls",
"hatch",
"invoke",
"jupyter",
"pre-commit",
"pyright",
"pytest",
"pytest-cov",
"pytest-xdist",
"toml",
"twine",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [ "colour" ]
[tool.codespell]
ignore-words-list = "co-ordinates,exitance,hart,ist,rIn,socio-economic"
skip = "BIBLIOGRAPHY.bib,CONTRIBUTORS.rst"
[tool.isort]
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
line_length = 88
multi_line_output = 3
split_on_trailing_comma = true
use_parentheses = true
[tool.pyright]
reportMissingImports = false
reportMissingModuleSource = false
reportUnboundVariable = false
reportUnnecessaryCast = true
reportUnnecessaryTypeIgnorComment = true
reportUnsupportedDunderAll = false
reportUnusedExpression = false
[tool.pytest.ini_options]
addopts = "-n auto --dist=loadscope --durations=5"
filterwarnings = [
"ignore::RuntimeWarning",
"ignore::pytest.PytestCollectionWarning",
"ignore::colour.utilities.ColourWarning",
"ignore::colour.utilities.ColourRuntimeWarning",
"ignore::colour.utilities.ColourUsageWarning",
"ignore:Implicit None on return values is deprecated:DeprecationWarning",
"ignore:Jupyter is migrating its paths:DeprecationWarning",
"ignore:the imp module is deprecated:DeprecationWarning",
"ignore:Method Nelder-Mead does not use gradient information:RuntimeWarning",
"ignore:More than 20 figures have been opened:RuntimeWarning",
"ignore:divide by zero encountered:RuntimeWarning",
"ignore:invalid value encountered in:RuntimeWarning",
"ignore:overflow encountered in:RuntimeWarning",
"ignore:Matplotlib is currently using agg:UserWarning",
"ignore:override the edgecolor or facecolor properties:UserWarning",
]
[tool.ruff]
target-version = "py310"
line-length = 88
select = ["ALL"]
ignore = [
"C", # Pylint - Convention
"C90", # mccabe
"COM", # flake8-commas
"ERA", # eradicate
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib [Enable]
"TD", # flake8-todos
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
"D200", # One-line docstring should fit on one line
"D202", # No blank lines allowed after function docstring
"D205", # 1 blank line required between summary line and description
"D301", # Use `r"""` if any backslashes in a docstring
"D400", # First line should end with a period
"I001", # Import block is un-sorted or un-formatted
"N801", # Class name `.*` should use CapWords convention
"N802", # Function name `.*` should be lowercase
"N803", # Argument name `.*` should be lowercase
"N806", # Variable `.*` in function should be lowercase
"N813", # Camelcase `.*` imported as lowercase `.*`
"N815", # Variable `.*` in class scope should not be mixedCase
"N816", # Variable `.*` in global scope should not be mixedCase
"NPY002", # Replace legacy `np.random.random` call with `np.random.Generator`
"PGH003", # Use specific rule codes when ignoring type issues
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison, consider replacing `.*` with a constant variable
"PYI036", # Star-args in `.*` should be annotated with `object`
"PYI051", # `Literal[".*"]` is redundant in a union with `str`
"PYI056", # Calling `.append()` on `__all__` may not be supported by all type checkers (use `+=` instead)
"RUF022", # [*] `__all__` is not sorted
"TRY003", # Avoid specifying long messages outside the exception class
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
]
typing-modules = ["colour.hints"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"__init__.py" = ["D104"]
"colour/examples/*" = ["INP", "T201", "T203"]
"docs/*" = ["INP"]
"tasks.py" = ["INP"]
"test_*" = ["S101"]
"utilities/*" = ["EXE001", "INP"]
"utilities/unicode_to_ascii.py" = ["RUF001"]
[tool.ruff.format]
docstring-code-format = true