-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
194 lines (171 loc) · 4.75 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
[project]
name = "autointent"
version = "0.0.1"
description = "A tool for automatically configuring a text classification pipeline for intent prediction."
license = { text = "Apache 2.0" }
authors = [
{ name = "Alexeev Ilya", email = "[email protected]" },
{ name = "Kuznetsov Denis", email = "[email protected]" },
]
maintainers = [
{ name = "Alexeev Ilya", email = "[email protected]" },
{ name = "Solomatin Roman", email = "[email protected]" },
{ name = "Sergeenko Egor", email = "[email protected]" },
]
readme = "README.md"
keywords = ["nlp", "dialog-systems", "transformers", "auto-ml"]
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Natural Language :: Russian',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
'Topic :: Utilities',
'Framework :: Pytest',
'Framework :: Sphinx',
'Typing :: Typed',
]
requires-python = ">=3.10,<=4.0"
dependencies = [
"sentence-transformers (>=3,<4)",
"scikit-learn (>=1.5,<2.0)",
"scikit-multilearn (==0.2.0)",
"appdirs (>=1.4,<2.0)",
"sre-yield (>=1.2,<2.0)",
"optuna (>=4.0.0,<5.0.0)",
"xeger (>=0.4.0,<0.5.0)",
"pathlib (>=1.0.1,<2.0.0)",
"pydantic (>=2.10.5,<3.0.0)",
"faiss-cpu (>=1.9.0,<2.0.0)",
"openai (>=1.59.6,<2.0.0)",
"datasets (>=3.2.0,<4.0.0)",
"xxhash (>=3.5.0,<4.0.0)",
"python-dotenv (>=1.0.1,<2.0.0)",
]
[project.urls]
Homepage = "https://deeppavlov.github.io/AutoIntent/"
Repository = "https://github.com/deeppavlov/AutoIntent"
Documentation = "https://deeppavlov.github.io/AutoIntent/"
[project.scripts]
"basic-aug" = "autointent.generation.utterances.basic.cli:main"
"evolution-aug" = "autointent.generation.utterances.evolution.cli:main"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
tach = "^0.11.3"
ipykernel = "^6.29.5"
ipywidgets = "^8.1.5"
ruff = "==0.8.4"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "8.3.2"
pytest-cov = "^5.0.0"
coverage = "^7.6.1"
pytest-asyncio = "^0.24.0"
[tool.poetry.group.typing]
optional = true
[tool.poetry.group.typing.dependencies]
mypy = "^1"
types-pyyaml = "^6.0.12.20240917"
types-pygments = "^2.18.0.20240506"
types-setuptools = "^75.2.0.20241019"
joblib-stubs = "^1.4.2.5.20240918"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^8.1.3"
pydata-sphinx-theme = "^0.16.0"
jupytext = "^1.16.4"
nbsphinx = "^0.9.5"
sphinx-autodoc-typehints = "^2.5.0"
sphinx-copybutton = "^0.5.2"
sphinx-autoapi = "^3.3.3"
ipykernel = "^6.29.5"
tensorboardx = "^2.6.2.2"
sphinx-multiversion = "^0.2.4"
[tool.ruff]
line-length = 120
indent-width = 4
exclude = ["experiments", "scripts"]
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"TD", # todos
"FIX", # fixmes
"S311", # random usage
"COM812", # trailing commas
"ISC001", # implicit string concatenation
"ERA001", # commented code
"FBT", # boolean trap
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "D104"]
"autointent/__init__.py" = ["I001"]
"tests/*.py" = ["S", "PLR2004", "ERA", "D", "ANN", "SLF"]
"tests/context/datahandler/test_data_handler.py" = ["PT011"]
"autointent/modules/*" = ["ARG002", "ARG003"] # unused argument
"docs/*" = ["INP001", "A001", "D"]
"*/utils.py" = ["D104", "D100"]
"*user_guides/*" = ["B018", "E501", "INP001", "T", "D", "E402", "I001", "W292"]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra" # `--cov` option breaks pycharm's test debugger
testpaths = [
"tests",
]
pythonpath = "autointent"
[tool.coverage.run]
branch = true
omit = [
"__init__.py",
]
[tool.coverage.paths]
source = [
"autointent/",
]
[tool.coverage.report]
skip_empty = true
[tool.mypy]
python_version = "3.10"
strict = true
warn_redundant_casts = true
plugins = [
"pydantic.mypy",
"numpy.typing.mypy_plugin",
]
mypy_path = "autointent"
disable_error_code = ["override"]
[[tool.mypy.overrides]]
module = [
"scipy",
"sklearn",
"sklearn.*",
"xeger",
"appdirs",
"sre_yield",
"skmultilearn.model_selection",
"hydra",
"hydra.*",
"transformers",
"faiss",
"datasets",
"joblib",
"torch.utils.tensorboard",
"tensorboardX",
"wandb",
]
ignore_missing_imports = true