-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (166 loc) · 4.29 KB
/
pyproject.toml
File metadata and controls
185 lines (166 loc) · 4.29 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
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
[project]
name = "rics"
version = "5.0.1.dev1"
description = "My personal little ML engineering library."
authors = [
{ name = "Richard Sundqvist", email = "richard.sundqvist@live.se" },
]
license = { text = "MIT" }
readme = "README.md"
keywords = ["rics"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Typing :: Typed",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.11"
dependencies = [
"pandas >= 2.0.3",
]
[project.optional-dependencies]
cli = [
"click >= 8.1.0",
]
plotting = [
"matplotlib",
"seaborn"
]
[project.urls]
homepage = "https://github.com/rsundqvist/rics"
repository = "https://github.com/rsundqvist/rics"
documentation = "https://rics"
"Bug Tracker" = "https://github.com/rsundqvist/rics/issues"
"Changelog" = "https://github.com/rsundqvist/rics/blob/master/CHANGELOG.md"
[project.scripts]
mtimeit = "rics.performance.cli:main" # TODO(6.0.0): Remove old entrypoint.
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
[tool.poetry.group.manual-extras.dependencies]
# Extras that must be available for docs + tests go here. Doc/test-only deps go in their respective groups.
croniter = "^2.0.1"
polars = { version = "^1.21.0", extras = ["pandas"] }
[tool.poetry.group.docs]
[tool.poetry.group.docs.dependencies]
# duplicate object warnings for sphinx>=4
# description: https://github.com/astropy/astropy/issues/11723
# https://github.com/astropy/astropy/pull/12270
sphinx = "~8.1.3"
pydata-sphinx-theme = "~0.16.1"
myst-parser = "~4.0.0"
nbsphinx = "~0.9.6"
ipython = "~8.31.0"
[tool.poetry.group.notebooks]
optional = true
[tool.poetry.group.notebooks.dependencies]
jupyterlab = "^4"
ipywidgets = "*"
jupyterlab-execute-time = "*"
tqdm = "*"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.4"
xdoctest = "^1.2.0"
coverage = "^7.6.10"
pytest-cov = "^6.0.0"
scikit-learn = "^1.4.2"
dask = { version = "^2025.1.0", extras = ["dataframe"] }
[tool.poetry.group.devops.dependencies]
invoke = "^2.2.0"
mypy = "^1.15.0"
ruff = "^0.11.4"
safety = "^3.0.1"
codespell = "^2.2.6"
bump2version = "^1.0.1"
[tool.ruff]
line-length = 120
fix = true
unsafe-fixes = false
output-format = "grouped"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
line-ending = "lf"
[tool.ruff.lint]
exclude = ["notebooks/*"]
select = [
"ANN",
"S",
"I",
"B",
"D",
"F",
"W",
"E",
"SLOT",
"SIM",
"TID",
"TD",
"TCH",
"ARG",
"PTH",
"NPY",
"PD",
"N",
"PERF",
"PLC",
"PLE",
"PLR",
"PLW",
"UP",
"FURB",
"RUF",
"TRY",
]
ignore = [
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"ANN401",
"TID252", # Prefer absolute imports over relative imports from parent modules
"TRY003",
"PD901", # Avoid using the generic variable name `df` for DataFrames
"PLC0415", # `import` should be at the top-level of a file
"PLR0913", #
"SIM108", # Use ternary operator - coverage issue, see https://github.com/nedbat/coveragepy/issues/509
"TD003", # Missing issue link
"TC006", # Add quotes to type expression in `typing.cast()`
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D",
"S101", # Allow 'assert' keyword
"ANN",
"PLR2004", # Allow magic values
]
"examples/*" = [
"D205", # Clashes with sphinx_gallery (generated examples)
"B007",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pycodestyle]
max-line-length = 150
[tool.pytest]
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:Matplotlib is currently using agg:UserWarning",
"ignore:.*rics.ml.time_split:DeprecationWarning",
]
log_file_level = 10
log_file = "pytest.log"
norecursedirs = [
"**/cli_modules/*",
]
[build-system]
requires = ["poetry-core>=1.0.8"]
build-backend = "poetry.core.masonry.api"