-
Notifications
You must be signed in to change notification settings - Fork 41
/
pyproject.toml
132 lines (123 loc) · 4.31 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
[tool.poetry]
name = "langtest"
version = "2.5.0"
description = "John Snow Labs provides a library for delivering safe & effective NLP models."
authors = ["John Snow Labs <[email protected]>"]
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"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",
]
license = "Apache-2.0"
homepage = "https://www.langtest.org"
repository = "https://github.com/JohnSnowLabs/langtest/"
documentation = "https://langtest.org/docs/pages/docs/install"
keywords = [
"LLM",
"NLP",
"AI",
"testing",
"robustness",
"bias",
"fairness",
"representation",
"accuracy",
"language processing",
"natural language understanding",
"machine learning",
"data science",
]
exclude = [
"tests/"
]
[tool.flake8]
max-line-length = 90
ignore = "E203,E501,W503"
per-file-ignores = '__init__.py:F401'
[tool.black]
line-length = 90
extend-exclude = "langtest/transform/constants.py"
exclude = 'langtest/errors.py'
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
pydantic = "2.9.2"
johnsnowlabs = {version = "5.5.0", optional = true}
rouge-score = { version = "^0.1.2", optional = true }
evaluate = { version = "^0.4.0", optional = true }
transformers = "^4.44.2"
huggingface_hub = { version = ">0.16.0", optional = true}
spacy = { version = ">=3.0.0", optional = true }
nest-asyncio = "^1.5.0"
openai = "^1.40.6"
jsonlines = ">=3.1.0"
torch = { version = "^2.0.0", optional = true }
pandas = "^2.0.3"
pyyaml = "^6.0"
tqdm = ">=4.65.0"
cohere = { version = "^4.10.0", optional = true}
ai21 = {version = "^1.1.0", optional = true}
metaflow = {version = ">=2.9.0", optional = true}
accelerate = {version = "0.34.2", optional = true}
seqeval = {version = "^1.2.0", optional = true}
mlflow = {version = "^2.18.0", optional = true}
datasets = {version = ">=2.14.0", optional = true}
matplotlib = {version = "^3.7.2", optional = true}
tenacity = {version = "^8.2.2", optional = true}
langchain = {version = "0.3.6", optional = true}
typing-extensions = "^4.10.0"
langchain-openai = {version = "0.2.5", optional = true}
boto3 = {version = "^1.34.93", optional = true}
importlib-resources = "^6.4.0"
click = ">=8.1.7"
openpyxl = ">=3.1.5"
tables = ">=3.8.0"
pillow = ">=11.0.0"
langchain-databricks = {version = "0.1.1", optional = true}
langchain-community = {version = "0.3.5", optional = true}
[tool.poetry.extras]
transformers = ["transformers", "torch", "accelerate", "datasets"]
evaluate = ["evaluate", "rouge-score", "seqeval"]
spacy = ["spacy"]
johnsnowlabs = ["johnsnowlabs"]
openai = ["openai", "langchain", "langchain-openai", "langchain-community"]
cohere = ["cohere", "langchain", "langchain-community"]
ai21 = ["ai21", "langchain", "langchain-community"]
huggingface_hub = ["huggingface_hub", "langchain"]
metaflow = ["metaflow"]
mlflow = ["mlflow"]
datasets = ["datasets"]
matplotlib = ["matplotlib"]
databricks = ["langchain", "langchain-databricks", "langchain-community", "langchain-openai"]
llms = ["langchain", "langchain-community", "langchain-openai", "langchain-databricks"]
[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.13"
pytest = "^7.4.0"
taskipy = "^1.11.0"
en-core-web-sm = { url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0.tar.gz" }
black = "^23.3.0"
pyproject-flake8 = "<6.0.0"
pre-commit = "^3.3.3"
pydocstyle = "^6.3.0"
ipykernel = "^6.29.5"
pytest-cov = "^6.0.0"
[tool.taskipy.tasks]
test = "pytest tests/* -v --disable-warnings"
lint = "pflake8 langtest/"
format = "black langtest/ tests/"
check-docstrings = "pydocstyle langtest/ --add-select=D417 --add-ignore=D100,D104,D105,D400,D415 --convention=google"
is-formatted = "black --check langtest/ tests/"
force-cpu-torch = "python -m pip install torch --index-url https://download.pytorch.org/whl/cpu"
extra-lib = "python -m pip install openpyxl tables"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
langtest = "langtest.__main__:cli"