-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (57 loc) · 1.82 KB
/
Copy pathpyproject.toml
File metadata and controls
63 lines (57 loc) · 1.82 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
[project]
name = "agent-forge"
version = "0.1.0"
description = "Multi-turn LLM agent with streaming tool use, atomic context management, and gRPC RAG integration."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"openai>=2.31.0",
"pydantic>=2.13.0",
"tenacity>=9.1.4",
"tiktoken>=0.12.0",
"pyyaml>=6.0",
"jsonschema>=4.23.0",
"grpcio>=1.80.0",
"grpcio-tools>=1.80.0",
]
[project.scripts]
agent-forge = "main:run"
[tool.ruff]
line-length = 120
exclude = ["agent_forge/_gen"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstring — add later if desired
"ANN", # type annotations — add later if desired
"COM812", # trailing comma — conflicts with formatter
"ISC001", # implicit string concat — conflicts with formatter
"TRY003", # long exception messages — acceptable for a CLI tool
"EM101", # string literal in exception — same
"EM102", # f-string in exception — same
"TRY300", # return in else — style preference
"TRY400", # logger.error vs logger.exception — intentional (we reraise)
"FBT001", # boolean positional arg — logger internal
"FBT002", # boolean default arg — logger internal
"TC001", # TYPE_CHECKING block — imports used at runtime (TypedDicts)
"TC002", # same, third-party
"TC003", # same, stdlib
"RET503", # implicit return None — explicit is fine
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"S101", # assert is idiomatic in pytest
"PLR2004",# magic numbers in test assertions are readable
"ARG001", # unused args in mock functions
"F841", # unused local vars in test setup
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = ["tests"]
[dependency-groups]
dev = [
"ruff>=0.15.10",
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
]