-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
127 lines (104 loc) · 3.27 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "timebasedcv"
version = "0.1.0"
description = "Time based cross validation"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.8"
authors = [{name = "Francesco Bruzzesi"}]
dependencies = [
"numpy",
"narwhals>=0.7.15",
"typing-extensions>=4.4.0; python_version < '3.11'",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"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]
polars = ["polars>=0.20.3"]
pandas = ["pandas>=1.2.0"]
scikit-learn = ["scikit-learn>=0.19",]
dev = [
"pre-commit==2.21.0",
"hatch"
]
lint = [
"ruff>=0.4.0"
]
docs = [
"mkdocs>=1.4.2",
"mkdocs-material>=9.2.0",
"mkdocstrings[python]>=0.20.0",
"mkdocs-autorefs",
]
test = [
"interrogate>=1.5.0",
"pytest==7.2.0",
"pytest-xdist==3.2.1",
"coverage==7.2.1",
]
all = ["timebasedcv[pandas,polars,scikit-learn]"]
all-dev = ["timebasedcv[all,dev,docs,lint,test]"]
[tool.hatch.build.targets.sdist]
only-include = ["timebasedcv"]
[tool.hatch.build.targets.wheel]
packages = ["timebasedcv"]
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"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.
"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", "PT006", "PT007", "PLR0913", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.format]
docstring-code-format = true
[tool.interrogate]
ignore-nested-functions = true
ignore-module = true
ignore-init-method = true
ignore-private = true
ignore-magic = true
ignore-property-decorators = true
ignore-overloaded-functions = true
fail-under = 95
exclude = ["timebasedcv/utils/_types.py"]
verbose = 2 # 0 (minimal output), 1 (-v), 2 (-vv)
[tool.mypy]
ignore_missing_imports = true
[tool.coverage.run]
source = ["timebasedcv/"]
omit = [
"timebasedcv/utils/_types.py", # collection of type hints and protocols
]