-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
232 lines (213 loc) · 5.55 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
[project]
name = "tsbootstrap"
version = "0.1.5"
description = "A Python package to generate bootstrapped time series"
maintainers = [
{ name = "Sankalp Gilda", email = "sankalp.gilda@gmail.com" },
{ name = "Franz Kiraly", email = "franz.kiraly@sktime.net"},
{ name = "Benedikt Heidrich", email = "benedikt.heidrich@sktime.net"},
]
authors = [
{ name = "Sankalp Gilda", email = "sankalp.gilda@gmail.com" },
]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.9,<3.13"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"numpy<1.27,>=1.21",
"scikit-base>=0.10.0,<0.11",
"scikit-learn>=1.5.1,<1.6.0",
"scipy>=1.10,<1.14.0",
"packaging>=24.0,<24.2",
"pydantic>=2.0,<3.0",
]
[project.optional-dependencies]
all-extras = [
"arch>=7.0.0,<7.1.0",
"hmmlearn>=0.3.0,<0.3.2",
"pyclustering>=0.10.0,<0.11.0",
"scikit_learn_extra>=0.3.0,<0.4.0",
"statsmodels>=0.14.2,<0.15.0",
"dtaidistance; python_version < '3.10'",
]
docs = [
"furo",
"jupyter",
"myst-parser",
"nbsphinx>=0.8.6",
"numpydoc",
"pydata-sphinx-theme",
"Sphinx!=7.2.0,<8.0.0",
"sphinx-rtd-theme>=1.3.0",
"sphinx-copybutton>=0.5.2",
"sphinx-design<0.6.0",
"sphinx-gallery<0.15.0",
"sphinx-issues<4.0.0",
"sphinx-version-warning",
"tabulate>=0.9.0",
]
dev = [
"black>=24.3.0",
"blacken-docs",
"hypothesis",
"pre-commit",
"pytest",
"pytest-cov",
"github-actions",
"importlib-metadata",
"pip-tools",
"pyright",
"ruff",
"autoflake",
"typos",
"tox",
"tox-gh-actions",
"pycobertura",
"tomlkit"
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
[tool.pytest.cov]
source = ["src/tsbootstrap"]
[tool.black]
line-length = 79
target-version = ["py310", "py311"]
[tool.ruff]
target-version = 'py310'
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # Error
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"S", # bandit
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
exclude = [
"migrations",
"__pycache__",
"manage.py",
"settings.py",
"env",
".env",
"venv",
".venv",
]
ignore = [
"B905", # zip strict=true; remove once python <3.10 support is dropped.
"C901", # function is too complex; overly strict
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D401",
"E402",
"E501", # line length handled by black
"F401",
"N802", # Function name should be lowercase; overly strict
"N803", # Argument name should be lowercase; overly strict
"N806", # Variable in function should be lowercase; overly strict
"N816", # Variable in class scope should not be mixedCase; overly strict
"PGH003", # Use of "eval"; overly strict
"SIM115", # open-file-with-context-handler; overly strict
"TRY003", # Avoid specifying messages outside exception class; overly strict, especially for ValueError
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`; overly strict
"UP007", # Use `X | Y` for type annotationsRuffUP007; overly strict
"UP006", # Use `list` instead of `List` for type annotations; overly strict
"UP035", # `typing.List` is deprecated, use `list` instead; overly strict
]
line-length = 79 # Must agree with Black
[tool.ruff.isort]
order-by-type = true
relative-imports-order = "closest-to-furthest"
extra-standard-library = ["typing"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
known-first-party = []
[tool.ruff.flake8-bugbear]
extend-immutable-calls = [
"chr",
"typer.Argument",
"typer.Option",
]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"tests/*.py" = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"S101", # use of "assert"
"S102", # use of "exec"
"S106", # possible hardcoded password.
"PGH001", # use of "eval"
]
"src/tsbootstrap/tests/*.py" = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"S101", # use of "assert"
"S102", # use of "exec"
"S106", # possible hardcoded password.
"PGH001", # use of "eval"
]
[tool.ruff.pep8-naming]
staticmethod-decorators = [
"pydantic.validator",
"pydantic.root_validator",
]
[tool.interrogate]
ignore_init_module = true
ignore_init_class = true
ignore_magic = true
ignore_semiprivate = true
ignore_private = true
ignore_nested_functions = true
ignore_nested_classes = true
ignore_imports = false
exclude = [".venv/*", "tests/*", "docs/*", "build/*", "dist/*", "src/tsbootstrap/_version.py", "src/tsbootstrap/__init__.py", "src/tsbootstrap/utils/types.py"]
[tool.coverage.run]
source = ['src/']
omit = ['tests/*', '.venv/*']