-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (100 loc) · 2.46 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (100 loc) · 2.46 KB
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
[project]
name = "inspect-optimize"
version = "0.2.0"
description = "Automatic Prompt Optimization for Inspect AI Evaluations"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"inspect-ai>=0.3.137",
"inspect-evals>=0.3.dev1435",
"pydantic-ai>=1.0.18",
"pydantic-settings>=2.11.0",
"python-dotenv>=1.0.0",
"pyyaml>=6.0",
"rich>=14.2.0",
"typer>=0.19.2",
]
[project.scripts]
inspect-optimize = "inspect_optimize.cli:app"
[dependency-groups]
test = [
"pre-commit>=4.3.0",
"pytest-sugar>=1.1.1",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.2",
]
clustering = [
"accelerate>=1.10.1",
"torch>=2.8.0",
"pandas>=2.3.3",
"transformers>=4.57.0",
]
gui = [
"gradio>=6.3.0",
"pandas>=2.3.3",
"plotly>=5.18.0",
]
mcp = [
"fastmcp>=2.12.4",
]
evals = [
"inspect-evals @ git+https://github.com/UKGovernmentBEIS/inspect_evals",
]
[build-system]
requires = ["uv_build>=0.9.3,<0.10.0"]
build-backend = "uv_build"
[tool.uv]
package = true
[tool.pytest.ini_options]
testpaths = ["tests", "examples/library_usage"]
python_files = ["test_*.py", "*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--doctest-modules",
"--doctest-continue-on-failure",
"-v"
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL"
]
markers = [
"asyncio: async tests",
"integration: integration tests",
"e2e: end-to-end tests",
]
# Ignore warnings from dependencies
filterwarnings = [
"ignore::DeprecationWarning",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
line-length = 100
target-version = "py313"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long (formatter handles this)
"E402", # module level import not at top (needed for dotenv loading)
"F401", # unused import (false positives with optional dependencies)
"F821", # undefined name (historical issues)
"F841", # unused variable (historical issues)
"B008", # function call in argument defaults (required by Typer)
"B904", # raise from (historical issues)
"UP036", # version block (intentional for Python 3.12/3.13 compatibility)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"