-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (110 loc) · 2.6 KB
/
Copy pathpyproject.toml
File metadata and controls
124 lines (110 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "lmtwt"
version = "0.1.0"
description = "Let Me Talk With Them — security testing framework for LLM prompt injection and jailbreak resistance"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Tanuphat Tin", email = "tanuphat.chai@gmail.com" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security",
]
dependencies = [
"openai>=1.0.0",
"anthropic>=0.5.0",
"google-genai>=1.0",
"httpx>=0.27",
"python-dotenv>=1.0.0",
"rich>=13.0.0",
"tenacity>=8.2.0",
"aiolimiter>=1.1",
"pydantic>=2.0",
"matplotlib>=3.7.0",
"pandas>=1.5.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
local = [
"torch>=2.0.0",
"transformers>=4.30.0",
"accelerate>=0.20.0",
]
web = [
"gradio>=3.50.0",
]
api = [
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"sse-starlette>=2.0",
]
report = [
"weasyprint>=60",
]
[dependency-groups]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.23",
"pytest-cov>=4.0",
"ruff>=0.5",
]
[tool.uv]
# Default install brings the dev group along (uv-only behavior).
# Plain `pip install -e .` still gives just the runtime deps.
default-groups = ["dev"]
[project.scripts]
lmtwt = "lmtwt.cli:main"
[project.urls]
Homepage = "https://github.com/tin537/LMTWT"
Issues = "https://github.com/tin537/LMTWT/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/lmtwt"]
[tool.hatch.build.targets.wheel.force-include]
"src/lmtwt/web_api/static" = "lmtwt/web_api/static"
[tool.hatch.build.targets.sdist]
include = [
"src/lmtwt",
"tests",
"examples",
"docs",
"README.md",
"LICENSE",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v"
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long (handled by formatter where it matters)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401"] # unused imports common in test fixtures
[tool.ruff.format]
quote-style = "double"
indent-style = "space"