-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (124 loc) · 3.47 KB
/
pyproject.toml
File metadata and controls
148 lines (124 loc) · 3.47 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[tool.poetry]
name = "rigging"
version = "3.3.5"
description = "LLM Interaction Framework"
authors = ["Nick Landers <monoxgas@gmail.com>"]
license = "MIT"
repository = "https://github.com/dreadnode/rigging"
readme = "README.md"
packages = [{ include = "rigging" }]
# Dependencies
[tool.poetry.dependencies]
python = ">=3.10,<3.14"
pydantic = "^2.7.3"
pydantic-xml = "<=2.17.0"
loguru = "^0.7.2"
litellm = "==1.79.3"
xmltodict = "^0.13.0"
colorama = "^0.4.6"
jsonpath-ng = "^1.7.0"
ruamel-yaml = "^0.18.10"
jsonref = "^1.1.0"
mcp = "^1.5.0"
dreadnode = ">=1.12.0"
vllm = { version = "^0.5.0", optional = true }
transformers = { version = "^4.41.0", optional = true }
accelerate = { version = "^0.30.1", optional = true }
asyncssh = { version = "^2.14.2", optional = true }
click = { version = "^8.1.7", optional = true }
httpx = { version = "^0.28.0", optional = true }
aiodocker = { version = "^0.22.2", optional = true }
websockets = { version = "^13.0", optional = true }
elasticsearch = { version = "^8.13.2", optional = true }
pandas = { version = "^2.2.2", optional = true }
logfire = { version = "^3.20.0", optional = true }
[tool.poetry.extras]
data = ["pandas", "elasticsearch"]
examples = ["asyncssh", "click", "httpx", "aiodocker", "websockets"]
llm = ["vllm", "transformers", "accelerate"]
all = [
"vllm",
"transformers",
"accelerate",
"asyncssh",
"click",
"httpx",
"aiodocker",
"websockets",
"logfire",
"elasticsearch",
"pandas",
]
[tool.poetry.group.dev.dependencies]
ipykernel = "^6.27.1"
mypy = "^1.15.0"
ruff = "^0.10.0"
pytest = "^8.0.0"
pandas-stubs = "^2.2.1.240316"
coverage = "^7.5.1"
ipywidgets = "^8.1.3"
pytest-asyncio = "^1.0.0"
types-colorama = "^0.4.15.20240311"
types-requests = "2.32.4.20250611"
beautifulsoup4 = "^4.13.4"
mkdocstrings = { extras = ["python"], version = "^0.29.1" }
markdown = "^3.8"
markdownify = "^1.1.0"
boto3-stubs = { extras = ["s3"], version = "^1.35.0" }
# Build
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Tests / Coverage
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
command_line = "-m pytest"
[tool.coverage.report]
include = ["rigging/*.py"]
show_missing = true
[tool.coverage.lcov]
output = "lcov.info"
# Tracing
[tool.logfire]
ignore_no_config = true
# Security
[tool.bandit]
exclude_dirs = ["examples/*", ".github/*", ".hooks/*"]
# Type Checking
[tool.mypy]
plugins = "pydantic.mypy"
strict = true
# Formatting / Linting
[tool.ruff]
target-version = "py310"
line-length = 100
extend-exclude = [
"*.ipynb", # jupyter notebooks
"examples/*", # example files
".github/*", # github files
".hooks/*", # git hooks
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E501", # line too long (we make best effort)
"TRY003", # long messages in exception classes
"EM", # picky message construction for exceptions
"C90", # mccabe complexity
"A002", # shadowing built-in
"D", # docstrings
"ANN", # annotations (handled by mypy)
"PLR0913", # too many arguments
"ERA001", # commented out code
"FIX002", # contains todo, consider fixing
"TD002", # TODO
"TD003", # TODO
"PLR0911", # too many return statements
"FBT003", # boolean positional in function call
"COM812", # missing trailing comma in function call
]
[tool.ruff.format]
skip-magic-trailing-comma = false