-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
77 lines (68 loc) · 2.02 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
[build-system]
requires = [ "poetry-core",]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "benchllm"
version = "0.3.0"
description = "Tool for testing LLMs"
homepage = "https://github.com/v7labs/benchllm"
authors = [ "Simon Edwardsson <[email protected]>", "Andrea Azzini <[email protected]>"]
readme = "README.md"
license = "MIT"
keywords = []
classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",]
[[tool.poetry.packages]]
include = "benchllm"
[tool.isort]
profile = "black"
[tool.mypy]
plugins = [ "pydantic.mypy",]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
no_implicit_reexport = true
ignore_missing_imports = true
disallow_any_unimported = true
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_subclassing_any = true
python_version = "3.10"
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_return_any = false
warn_unreachable = true
pretty = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.black]
line-length = 120
[tool.flake8]
max-line-length = 120
ignore = [ "E203", "W503", "E402",]
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
pyyaml = ">=5.1"
typer = { version = "*", extras = ["all"] }
pydantic = "^1.10.9"
openai = "*"
langchain = { version = "*", optional = true }
pypdf = { version = "*", optional = true }
tiktoken = { version = "*", optional = true }
faiss-cpu = { version = "*", optional = true }
types-pyyaml = { version = "*", optional = true }
pytest = { version = "*", optional = true }
pywebio = { version = "*", optional = true }
[tool.poetry.extras]
dev = [ "black", "isort", "flake8", "mypy", "pytest", "types-pyyaml"]
test = [ "pytest"]
examples = ["langchain", "tiktoken", "faiss-cpu", "pypdf"]
[tool.poetry.scripts]
bench = "benchllm.cli.main:main"