forked from Azure/PyRIT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
161 lines (153 loc) · 3.12 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[project]
name = "pyrit"
version = "0.3.1.dev0"
description = "The Python Risk Identification Tool for LLMs (PyRIT) is a library used to assess the robustness of LLMs"
authors = [
{ name = "Microsoft AI Red Team", email = "[email protected]" },
{ name = "dlmgary" },
{ name = "amandajean119" },
{ name = "microsiska" },
{ name = "rdheekonda" },
{ name = "rlundeen2" },
{ name = "romanlutz" },
{ name = "jbolor21" },
{ name = "nina-msft" },
]
readme = "README.md"
license = { text = "MIT" }
keywords = [
"llm",
"ai-safety",
"ai-security",
"ai-red-team",
"ai-red-teaming",
"ai-robustness",
"ai-robustness-testing",
"ai-risk-assessment",
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.10, <3.13"
dependencies = [
"aioconsole>=0.7.1",
"appdirs>=1.4.0",
"art==6.1.0",
"azure-cognitiveservices-speech>=1.36.0",
"azure-core>=1.26.1",
"azure-identity>=1.12.0",
"azure-ai-contentsafety>=1.0.0",
"azure-ai-ml==1.13.0",
"azure-storage-blob>=12.19.0",
"confusables==1.2.0",
"duckdb==0.10.0",
"duckdb-engine==0.11.2",
"jsonpickle>=3.0.4",
"jupyter>=1.0.0",
"ipykernel>=6.29.4",
"logzero>=1.7.0",
"numpy>=1.26.4",
"onnxruntime>=1.14.1",
"onnx>=1.16.0",
"openai>=1.23.2",
"pydantic>=2.7.1",
"pyodbc>=5.1.0",
"python-dotenv>=1.0.1",
"scikit-learn>=1.4.2",
"SQLAlchemy==2.0.28",
"sqlalchemy-stubs==0.4",
"termcolor>=2.4.0",
"tenacity>=8.2.3",
"tokenizers>=0.19.1",
"tqdm>=4.66.2",
"transformers>=4.40.0",
"types-requests>=2.31.0.20240406",
]
[project.optional-dependencies]
dev = [
"black>=24.4.0",
"flake8>=7.0.0",
"flake8-copyright>=0.2.4",
"jupytext>=1.16.1",
"mypy>=1.9.0",
"mock-alchemy>=0.2.6",
"pillow>=10.3.0",
"pre-commit>=3.3.3",
"pytest>=7.3.1",
"pytest-asyncio>=0.23.5",
"pytest-cov>=4.0.0",
"respx>=0.20.2",
"semantic-kernel==0.9.4b1",
"types-PyYAML>=6.0.12.9",
]
[tool.pytest.ini_options]
pythonpath = ["."]
[tool.mypy]
plugins = []
ignore_missing_imports = true
strict = false
follow_imports = "silent"
strict_optional = false
disable_error_code = ["empty-body"]
[tool.black]
target-version = ["py310"]
line-length = 120
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["pyrit", "pyrit.*"]
[tool.jupytext]
formats = "ipynb,py:percent"
[tool.ruff]
line-length = 120
fixable = [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"T",
"W",
"ANN",
"ARG",
"BLE",
"COM",
"DJ",
"DTZ",
"EM",
"ERA",
"EXE",
"FBT",
"ICN",
"INP",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"UP",
"YTT",
]