-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (92 loc) · 2.6 KB
/
pyproject.toml
File metadata and controls
104 lines (92 loc) · 2.6 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
[project]
name = "llama-stack-provider-trustyai-garak"
version = "0.3.1"
description = "Out-Of-Tree Llama Stack provider for Garak Red-teaming"
readme = "README.md"
requires-python = ">=3.12"
license = "Apache-2.0"
authors = [
{name = "Sai Chandra Pandraju", email = "saichandrapandraju@gmail.com"},
{name = "TrustyAI Team"}
]
keywords = ["llama-stack", "garak", "red-teaming", "security", "ai-safety"]
dependencies = [
"llama-stack-client>=0.5.0",
"llama-stack-api>=0.5.0",
# Remote execution dependencies
"kfp>=2.14.6",
"kfp-kubernetes>=2.14.6",
"kfp-server-api>=2.14.6",
"boto3>=1.35.88",
# eval-hub integration
"eval-hub-sdk[adapter]==0.1.4",
"pandas>=2.3.3",
"Jinja2>=3.1.6",
]
[project.urls]
homepage = "https://github.com/trustyai-explainability/llama-stack-provider-trustyai-garak"
repository = "https://github.com/trustyai-explainability/llama-stack-provider-trustyai-garak"
[build-system]
requires = ["setuptools>=80.9.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"llama_stack_provider_trustyai_garak" = ["resources/*"]
[project.optional-dependencies]
sdg = [
"nest_asyncio>=1.6.0",
"sdg-hub>=0.8.8",
]
inline = [
"llama-stack-provider-trustyai-garak[sdg]",
"garak==0.14.1+rhaiv.7",
]
test = ["pytest", "pytest-cov", "pytest-asyncio"]
dev = ["llama-stack-provider-trustyai-garak[test]", "ruff", "pre-commit"]
server = ["llama-stack>=0.5.0"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
pythonpath = ["src"]
addopts = "-v"
[tool.coverage.run]
source = ["llama_stack_provider_trustyai_garak"]
[tool.coverage.report]
show_missing = true
fail_under = 60
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = [
"E501", # line too long — enforced by formatter instead
"W291", # trailing whitespace — pre-existing, will clean up incrementally
"W293", # blank line with whitespace — pre-existing
"F811", # redefined-while-unused — some test fixtures
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["F401", "F841"]
"src/*/inline/garak_eval.py" = ["F841"]
"src/*/remote/garak_remote_eval.py" = ["F841"]
[tool.mypy]
python_version = "3.12"
warn_unused_configs = true
ignore_missing_imports = true
check_untyped_defs = false
disable_error_code = [
"union-attr",
"assignment",
"no-any-return",
"arg-type",
"attr-defined",
"valid-type",
"no-redef",
"call-arg",
"var-annotated",
"return-value",
"index",
"override",
]