generated from tjdcs/CS-Workbench
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
190 lines (176 loc) · 4.72 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
[tool.poetry]
name = "ole-tools"
version = "0.1.0"
description = ""
authors = ["Unknown"]
packages = [{ include = "ole" }]
[tool.poetry.scripts]
ole_measure = 'ole.scripts.measure_display:main'
ole_analyze = 'ole.scripts.analyze_display_measurements:main'
ole_anonymize = 'ole.scripts.strip_metadata:main'
[tool.poetry.dependencies]
requests = "^2.31.0"
python = "~3.12"
colour-science = "*"
colour-datasets = "*"
colour-specio = "*"
numpy = "^1.25.0"
scipy = "^1.10.1"
xxhash = "^3.2.0"
matplotlib = "^3.7.1"
scikit-learn = "^1.2.2"
pandas = "^2.2.0"
opencv-python = "^4.8.1.78"
pymoo = "^0.6.1.1"
telnetlib3 = "^2.0.4"
exscript = "^2.6.28"
[tool.poetry.dev-dependencies]
jupyter = "^1.0.0"
black = "^23.3.0"
pytest = "^7.4.0"
pytest-xdist = "^3.3.1"
pyright = "^1.1.332"
ruff = "^0.1.0"
flynt = "^1.0.1"
isort = "^5.12.0"
ipykernel = "^6.29.0"
networkx = ">= 2.7, < 3"
opencolorio = ">= 2, < 3"
tqdm = ">= 4, < 5"
colour-science = { path = "colour-science", develop = true }
colour-datasets = { path = "colour-datasets", develop = true }
colour-specio = { path = "colour-specio", develop = true }
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[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 = "py39"
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",
]
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"]
"utilities/*" = ["EXE001", "INP"]
"utilities/unicode_to_ascii.py" = ["RUF001"]
[tool.ruff.format]
docstring-code-format = true