forked from UKGovernmentBEIS/inspect_ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
129 lines (113 loc) · 2.92 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools_scm]
[tool.ruff]
extend-exclude = ["docs"]
src = ["src"]
[tool.ruff.lint]
select = ["E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"D", # pydocstyle
"I", # isort
# "RET", # flake8-return
# "RUF", # ruff rules
]
ignore = ["E203", "E501", "D10", "D212", "D415"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-rA -x --doctest-modules --color=yes --cov=inspect_ai"
testpaths = ["tests"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
[tool.mypy]
warn_unused_ignores = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module="inspect_ai.*"
warn_return_any = true
disallow_untyped_defs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
extra_checks = true
[[tool.mypy.overrides]]
module = "pandas-stubs.*"
ignore_errors = true
[project]
name = "inspect_ai"
description = "Framework for large language model evaluations"
authors = [{name = "UK AI Safety Institute"}]
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT License"}
dynamic = ["version", "dependencies"]
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
"Operating System :: OS Independent",
]
[project.urls]
Documentation = "https://UKGovernmentBEIS.github.io/inspect_ai/"
"Source Code" = "https://github.com/UKGovernmentBEIS/inspect_ai"
"Issue Tracker" = "https://github.com/UKGovernmentBEIS/inspect_ai/issues"
[project.scripts]
inspect = "inspect_ai._cli.main:main"
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
"pre-commit",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-dotenv",
"pytest-xdist",
"pandas-stubs",
"types-botocore",
"types-boto3",
"types-beautifulsoup4",
"types-protobuf",
"types-psutil",
"types-PyYAML",
"openai",
"anthropic",
"google-cloud-aiplatform",
"google-generativeai",
"mistralai",
"boto3",
"transformers",
"accelerate",
"torch",
"datasets",
"langchain",
"langchainhub",
"wikipedia",
"ipywidgets",
"ipython",
"nbformat"
]
doc = [
"quarto-cli"
]
dist = [
"twine",
"build"
]