-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
145 lines (122 loc) · 2.93 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
[tool.poetry]
name = "autointent"
version = "0.2.1-alpha1"
description = "A tool for automatically configuring a text classification pipeline for intent prediction."
authors = ["voorhs <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
sentence-transformers = "3.0.1"
scikit-learn = "1.5.1"
scikit-multilearn = "0.2.0"
appdirs = "^1.4.4"
sre-yield = "^1.2"
optuna = "^4.0.0"
xeger = "^0.4.0"
pathlib = "^1.0.1"
pydantic = "^2.9.2"
hydra-core = "^1.3.2"
faiss-cpu = "^1.9.0"
openai = "^1.52.1"
datasets = "2.20.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
tach = "^0.11.3"
ipykernel = "^6.29.5"
ipywidgets = "^8.1.5"
[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.lint]
optional = true
[tool.poetry.group.lint.dependencies]
ruff = "^0.6.8"
[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.scripts]
"autointent" = "autointent.pipeline.optimization.cli_endpoint:main"
"autointent-inference" = "autointent.pipeline.inference.cli_endpoint:main"
"clear-cache" = "autointent.context.vector_index_client.cache:clear_chroma_cache"
[tool.ruff]
line-length = 120
indent-width = 4
exclude = ["experiments", "scripts"]
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle
"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"]
"tests/*.py" = ["S", "PLR2004", "ERA", "D", "ANN", "SLF"]
"autointent/modules/*" = ["ARG002", "ARG003"] # unused argument
[tool.ruff.lint.pylint]
max-args = 10
[build-system]
requires = ["poetry-core"]
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",
"omegaconf",
"hydra",
"hydra.*",
"transformers",
"faiss",
"datasets",
"joblib",
]
ignore_missing_imports = true