-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (89 loc) · 2.42 KB
/
pyproject.toml
File metadata and controls
100 lines (89 loc) · 2.42 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
[build-system]
requires = ["hatchling>=1.27.0"]
build-backend = "hatchling.build"
[project]
name = "promptfoo"
version = "0.1.1"
description = "Python wrapper for the promptfoo CLI - LLM testing, red teaming, and security evaluation"
authors = [
{ name = "Ian Webster", email = "ian@promptfoo.dev" },
]
license = { text = "MIT" }
readme = "README.md"
keywords = ["llm", "testing", "security", "red-team", "ai", "evaluation", "promptfoo"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Security",
"Topic :: Software Development :: Testing",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.9"
dependencies = []
[project.optional-dependencies]
dev = [
"pytest>=8.4.0",
"mypy>=1.16.0",
"ruff>=0.12.0",
]
[project.scripts]
promptfoo = "promptfoo.cli:main"
[project.urls]
Repository = "https://github.com/promptfoo/promptfoo-python"
Homepage = "https://www.promptfoo.dev"
Documentation = "https://www.promptfoo.dev/docs"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.gitignore",
"/.python-version",
"/.release-please-manifest.json",
"/release-please-config.json",
"/renovate.json",
"/uv.lock",
"/tests",
"/CHANGELOG.md",
"/AGENTS.md",
"/CLAUDE.md",
]
[tool.hatch.build.targets.wheel]
packages = ["src/promptfoo"]
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
extend-select = [
"I", # isort
"W", # pycodestyle warnings
"E", # pycodestyle errors
"Q", # flake8-quotes
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"COM812", # Trailing comma (conflicts with formatter)
]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unreachable = true
no_implicit_optional = true
strict_equality = true
show_error_codes = true
pretty = true
check_untyped_defs = true
disallow_incomplete_defs = true