-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (162 loc) · 4.61 KB
/
Copy pathpyproject.toml
File metadata and controls
185 lines (162 loc) · 4.61 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "timebasedcv"
version = "0.3.0"
description = "Time based cross validation"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.10"
authors = [{name = "Francesco Bruzzesi"}]
dependencies = [
"python-dateutil",
"numpy",
"narwhals>=1.0.0",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
documentation = "https://fbruzzesi.github.io/timebasedcv/"
repository = "https://github.com/fbruzzesi/timebasedcv"
issue-tracker = "https://github.com/fbruzzesi/timebasedcv/issues"
[project.optional-dependencies]
scikit-learn = ["scikit-learn>=0.19"]
[dependency-groups]
testing = [
"covdefaults>=2.3.0",
"dask>=2023.1.0",
"pandas>=1.2.0",
"polars>=0.20.3",
"pyarrow>=11.0.0",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pytest-xdist>=3.8.0",
]
docs = [
"mkdocs>=1.4.2",
"mkdocs-material>=9.2.0",
"mkdocstrings[python]>=0.20.0",
"mkdocs-autorefs",
]
typing = [
"mypy>=1.19.1",
"pandas-stubs>=2.3.3.260113",
"pyarrow-stubs>=20.0.0.20251215",
"pyrefly>=0.56.0",
"pyright>=1.1.408",
"types-python-dateutil>=2.9.0.20260305",
"typing-extensions>=4.15.0",
{include-group = "testing"},
]
dev = [
"prek>=0.3.5",
"ruff>=0.15.6",
{include-group = "testing"},
{include-group = "docs"},
{include-group = "typing"},
]
[tool.hatch.build.targets.sdist]
only-include = ["timebasedcv"]
[tool.hatch.build.targets.wheel]
packages = ["timebasedcv"]
[tool.ruff]
line-length = 120
target-version = "py310"
fix = true
[tool.ruff.lint]
preview = true
explicit-preview-rules = true
extend-safe-fixes = [
"C419", # unnecessary-comprehension-in-call
"C420", # unnecessary-dict-comprehension-for-iterable
"EM101", # raw-string-in-exception
"EM102", # f-string-in-exception
"PLR6201", # literal-membership
"TC", # flake8-type-checking
"UP", # pyupgrade
"PLW1514", # unspecified-encoding
]
extend-select = [
"PLR0914", # too-many-locals
"PLR0916", # too-many-boolean-expressions
"PLR1702", # too-many-nested-blocks
"PLR6201", # literal-membership
"PLW1514", # unspecified-encoding
]
select = ["ALL"]
ignore = [
"COM812",
"D100", # Checks for undocumented public module definitions.
"D104", # Checks for undocumented public package definitions.
"D107", # Checks for public __init__ method definitions that are missing docstrings.
"E731", # Checks for lambda expressions which are assigned to a variable.
"ISC001",
"N803", # Checks for argument names that do not follow the snake_case convention.
# "EM101", # Checks for the use of string literals in exception constructors.
# "ISC001", # Checks for implicitly concatenated strings on a single line.
"RET505", # Checks for else statements with a return statement in the preceding if block.
"RET506",
# "TRY003", # Checks for long exception messages that are not defined in the exception class itself.
"DTZ"
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN", "D", "N802", "N806", "PD901", "PLC0415", "PLR0913", "PLR2004", "PT006", "PT007", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"error",
]
xfail_strict = true
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.coverage.report]
fail_under = 95
omit = [
"**/_typing.py",
]
exclude_also = [
"except ImportError",
]
[tool.mypy]
# ignore_missing_imports = true
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
[tool.rumdl]
line-length = 120
flavor = "mkdocs"
include = ["docs/**", "README.md", "AGENTS.md"]
disable = [
# NOTE: These look like either false positives or unsupported case
# TODO(FBruzzesi): Report upstream
# No blank line after admonition block
"MD031",
# Use fenced code blocks
"MD046",
]
[tool.rumdl.MD007]
# Keep list indentation consistent
indent = 4
start-indented = false