-
-
Notifications
You must be signed in to change notification settings - Fork 263
/
pyproject.toml
247 lines (233 loc) · 5.8 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
[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 = "colour-developers@colour-science.org" },
]
maintainers = [
{ name = "Colour Developers", email = "colour-developers@colour-science.org" }
]
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"
skip = "BIBLIOGRAPHY.bib,CONTRIBUTORS.rst"
[tool.flynt]
line_length = 999
[tool.isort]
ensure_newline_before_comments = true
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
[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 = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
# "ANN", # flake8-annotations
"B", # flake8-bugbear
# "BLE", # flake8-blind-except
"C4", # flake8-comprehensions
# "C90", # mccabe
# "COM", # flake8-commas
"DTZ", # flake8-datetimez
"D", # pydocstyle
"E", # pydocstyle
# "ERA", # eradicate
# "EM", # flake8-errmsg
"EXE", # flake8-executable
"F", # flake8
# "FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
# "PD", # pandas-vet
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PL", # pylint
# "PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib [Enable]
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff
"S", # flake8-bandit
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
# "TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pydocstyle
"YTT", # flake8-2020
]
ignore = [
"B008",
"B905",
"D104",
"D200",
"D202",
"D205",
"D301",
"D400",
"I001",
"N801",
"N802",
"N803",
"N806",
"N813",
"N815",
"N816",
"PGH003",
"PIE804",
"PLE0605",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"RET504",
"RET505",
"RET506",
"RET507",
"RET508",
"TRY003",
"TRY300",
"UP038",
]
typing-modules = ["colour.hints"]
fixable = ["B", "C", "E", "F", "PIE", "RUF", "SIM", "UP", "W"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"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