generated from tjdcs/CS-Workbench
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (127 loc) · 3.76 KB
/
pyproject.toml
File metadata and controls
140 lines (127 loc) · 3.76 KB
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
[project]
name = "ole-tools"
version = "0.1.0"
description = ""
authors = [{ name = "Unknown" }]
requires-python = ">=3.14,<3.15"
dependencies = [
"requests>=2.31.0,<3",
"colour-science",
"colour-datasets",
"colour-specio",
"numpy>=1.25.0,<2",
"scipy>=1.10.1,<2",
"xxhash>=3.2.0,<4",
"matplotlib>=3.7.1,<4",
"scikit-learn>=1.2.2,<2",
"pandas>=2.2.0,<3",
"opencv-python>=4.8.1.78,<5",
"pymoo>=0.6.1.1,<0.7",
"telnetlib3>=2.0.4,<3",
"exscript>=2.6.28,<3",
]
[project.scripts]
ole_measure = "ole.scripts.measure_display:main"
ole_analyze = "ole.scripts.analyze_display_measurements:main"
ole_anonymize = "ole.scripts.strip_metadata:main"
[dependency-groups]
dev = [
"jupyter>=1.0.0,<2",
"pytest>=7.4.0,<8",
"pytest-xdist>=3.3.1,<4",
"pyright>=1.1.332",
"ruff>=0.1.0",
"invoke>=2.2.0",
"pre-commit>=4.2.0",
"ipykernel>=6.29.0,<7",
"networkx>=2.7,<3",
"opencolorio>=2,<3",
"tqdm>=4,<5",
]
[tool.uv.sources]
colour-science = { path = "colour-science", editable = true }
colour-datasets = { path = "colour-datasets", editable = true }
colour-specio = { path = "colour-specio", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["ole"]
[tool.pyright]
include = ["ole"]
pythonVersion = "3.14"
typeCheckingMode = "standard"
reportMissingImports = false
reportMissingModuleSource = false
reportUnboundVariable = false
reportUnnecessaryCast = true
reportUnnecessaryTypeIgnoreComment = true
reportUnsupportedDunderAll = false
reportUnusedExpression = false
reportUnusedImport = true
reportUnusedVariable = true
reportMissingParameterType = true
reportDuplicateImport = true
reportInconsistentConstructor = true
[tool.pytest.ini_options]
testpaths = ["tests"]
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 = "py314"
line-length = 88
exclude = [
"colour-science",
"colour-datasets",
"colour-specio",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"C90", # mccabe complexity
"T20", # flake8-print
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
"B008", # Do not perform function calls in argument defaults
]
typing-modules = ["colour.hints"]
[tool.ruff.lint.isort]
known-first-party = ["ole"]
split-on-trailing-comma = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "T20"]
"tasks.py" = ["T20"]
"ole/scripts/*" = ["T201"]
"ole/ETC/fonts/__init__.py" = ["F403"]
"*.ipynb" = ["E402"]
[tool.ruff.format]
docstring-code-format = true