-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
183 lines (170 loc) · 5.18 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
[project]
name = "colour-datasets"
version = "0.2.6"
description = "Colour science datasets for use with Colour"
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 = [
"cachetools",
"colour-science>=0.4.5",
"imageio>=2,<3",
"numpy>=1.24,<3",
"opencv-python>=4,<5",
"scipy>=1.10,<2",
"tqdm",
"typing-extensions>=4,<5",
"xlrd>=1.2,<2",
]
[project.optional-dependencies]
optional = [
"matplotlib>=3.7",
]
docs = [
"biblib-simple",
"pydata-sphinx-theme",
"restructuredtext-lint",
"sphinx",
"sphinxcontrib-bibtex",
]
[project.urls]
Homepage = "https://www.colour-science.org"
Documentation = "https://colour-datasets.readthedocs.org"
Repository = "https://github.com/colour-science/colour-datasets"
Issues = "https://github.com/colour-science/colour-datasets/issues"
Changelog = "https://github.com/colour-science/colour-datasets/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_datasets" ]
[tool.codespell]
ignore-words-list = "assertIn,exitance,seperately,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
reportUnnecessaryTypeIgnoreComment = true
reportUnsupportedDunderAll = false
reportUnusedExpression = false
[tool.pytest.ini_options]
addopts = "--durations=5"
[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_datasets/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