-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
143 lines (129 loc) · 3.53 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
[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
"SIM101", # duplicate isinstance
"UP038", # non-pep604-isinstance
# "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 --doctest-modules --color=yes"
testpaths = ["tests"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
norecursedirs = [
"tests/test_helpers",
"tests/test_package",
"tests/test_task_list",
]
[tool.mypy]
warn_unused_ignores = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
# This mypy_path config is a bit odd, it's included to get mypy to resolve
# imports correctly in test files. For example, imports such as
# `from test_helpers.utils import ...` fail mypy without this configuration,
# despite actually working when running tests.
#
# Revisit this if it interferes with mypy running on `src` due to name
# conflicts, but that will hopefully be unlikely.
mypy_path = "tests"
[[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
disable_error_code = "unused-ignore"
[[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://inspect.ai-safety-institute.org.uk/"
"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 = [
"accelerate",
"anthropic",
"boto3",
"datasets",
"google-cloud-aiplatform",
"google-generativeai",
"ipython",
"ipywidgets",
"langchain",
"langchainhub",
"mistralai",
"mypy",
"nbformat",
"openai",
"pandas-stubs",
"pre-commit",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-dotenv",
"pytest-xdist",
"ruff",
"torch",
"transformers",
"types-PyYAML",
"types-aiofiles",
"types-beautifulsoup4",
"types-boto3",
"types-botocore",
"types-protobuf",
"types-psutil",
"types-python-dateutil",
"wikipedia",
"groq",
"wikipedia"
]
doc = ["quarto-cli", "jupyter"]
dist = ["twine", "build"]