-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
pyproject.toml
260 lines (237 loc) · 7.04 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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
[build-system]
requires = ["setuptools>=45.0", "setuptools_scm[toml]>=6.3.1", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sysidentpy"
description = "A Python Package For System Identification Using NARMAX Models"
readme = "README.md"
requires-python = ">=3.7,<3.13"
license = { file = "LICENSE" }
keywords = [
"data-science",
"forecasting",
"NARMAX",
"NARX",
"system-identification",
"machine-learning",
"time-series",
"time-series-analysis",
"time-series-classification",
"time-series-regression",
]
authors = [
{ email = "wilsonrljr@outlook.com" },
{ name = "Wilson Rocha Lacerda Junior" },
]
maintainers = [
{ name = "Wilson Rocha Lacerda Junior", email = "wilsonrljr@outlook.com" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Information Technology",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"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",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Operating System :: OS Independent",
]
dependencies = ["numpy>=1.19.2,<2.0", "scipy>=1.7.0", "matplotlib>=3.3.2"]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest >=7.0.0,<8.0.0",
"pytest-cov >=2.12.0,<4.0.0",
"flake8 >=3.8.3,<7.0.0",
"black >= 23.3.0",
"isort >=5.0.6,<6.0.0",
"pre-commit",
"ruff >=0.2.2,<3.0.0",
]
examples = ["scikit-learn", "catboost"]
doc = [
"mkdocs >=1.1.2,<2.0.0",
"mkdocs-material >=8.1.4,<=9.5.21",
"mdx-include >=1.4.1,<2.0.0",
"mkdocs-markdownextradata-plugin >=0.1.7,<=0.2.5",
# TODO: upgrade and enable typer-cli once it supports Click 8.x.x
# "typer-cli >=0.0.12,<0.0.13",
"typer >=0.4.1,<0.5.0",
"pyyaml >=5.3.1,<7.0.0",
"mkdocstrings[python]<=0.25.2",
"mkdocstrings-python<=1.10.8",
"mkdocs-redirects",
"mkdocs-minify-plugin<=0.6.4",
"mkdocs-glightbox <= 0.3.2",
"mkdocs-jupyter<=0.25.0",
# avoid jinja import error using 3.0.3 version
"jinja2==3.0.3",
]
all = ["torch >=1.7.1, <2.4.0"]
[project.urls]
homepage = "http://sysidentpy.org"
documentation = "http://sysidentpy.org/"
repository = "https://github.com/wilsonrljr/sysidentpy"
changelog = "https://github.com/wilsonrljr/sysidentpy/blob/master/CHANGELOG"
[tool.setuptools]
packages = ["sysidentpy"]
[tool.setuptools.dynamic]
version = { attr = "sysidentpy.__version__" }
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = ["--strict-config", "--strict-markers", "--cov=sysidentpy"]
xfail_strict = true
junit_family = "xunit2"
[tool.coverage.paths]
source = ["sysidentpy"]
[tool.coverage.run]
source = ["sysidentpy"]
disable_warnings = ['no-data-collected']
[tool.coverage.report]
omit = [
"sysidentpy/utils/plotting.py",
"sysidentpy/basis_function/tests/*",
"sysidentpy/tests/*",
"sysidentpy/general_estimators/tests/*",
"sysidentpy/metaheuristics/tests/*",
"sysidentpy/metrics/tests/*",
"sysidentpy/model_structure_selection/tests/*",
"sysidentpy/parameter_estimation/tests/*",
"sysidentpy/residues/tests/*",
"sysidentpy/simulation/tests/*",
]
show_missing = true
fail_under = 80
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
]
[tool.black]
line-length = 88
target_version = ["py37", "py38", "py39", "py310", "py311", "py312"]
preview = true
exclude = '''
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| \.vscode
| paper
| examples
| images
| build
| dist
| docs/*
)/
'''
[tool.ruff]
line-length = 88
[tool.ruff.lint]
unfixable = []
select = [
"D", # docstring conventions
"F", # pyflakes
"E", # pycodestyle erros
"W", # pycodestyle warnings
"YTT", # flake8-2020
"B", # flake8-bugbear
"Q", # flake8-quotes
"T10", # flake8-debugger
"INT", # flake8-gettext
"PL", # pylint
"PT", # flake8-pytest-style
"PIE", # misc lints
"PYI", # flake8-pyi
"TID", # tidy imports
"ISC", # implicit string concatenation
"TCH", # type-checking imports
"C4", # comprehensions
"PGH", # pygrep-hooks
"RUF", # Ruff-specific rules
"S102", # flake8-bandit: exec-builtin
"NPY002", # numpy-legacy-random
"PERF", # Perflint
"FLY", # flynt
"G", # flake8-logging-format
"FA", # flake8-future-annotations
]
extend-ignore = [
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
"TID252", # Prefer absolute imports over relative imports from parent modules
"PLR0913", # too many arguments in function
"G004", # logging statement uses f-string (to be defined)
"PERF203", # try-except within a loop
"RUF010", # use explicit conversion flag
"PLR2004", # magic value used in comparison
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D104", # Missing docstring in public package
"C416", # Unnecessary list comprehension
"F401", # import but unused
"NPY002", # Replace legacy np.random.rand
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"RUF005", # Collection literal concatenation
]
# D100, D101, D102 e D103 são recomendadas durante o desenvolvimento para lembrar
# os usuários de comentar o código!
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
ignore-init-module-imports = true
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
[tool.ruff.lint.pydocstyle]
convention = "numpy"