-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathpyproject.toml
95 lines (82 loc) · 2.11 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
[project]
authors = [
]
license = { text = "MIT" }
requires-python = "<4.0,>=3.10"
dependencies = [
"langgraph>=0.2.25",
"dydantic<1.0.0,>=0.0.8",
"jsonpatch<2.0,>=1.33"
]
name = "trustcall"
version = "0.0.39"
description = "Tenacious & trustworthy tool calling built on LangGraph."
readme = "README.md"
[dependency-groups]
dev = [
"ruff<1.0.0,>=0.4.10",
"mypy<2.0.0,>=1.10.1",
"pytest>=8.2.2,<9.0.0",
"pytest-socket<1.0.0,>=0.7.0",
"langchain<1.0,>=0.3",
"langchain-openai<1.0,>=0.2",
"langchain-fireworks<1.0,>=0.2",
"langchain-anthropic<1.0,>=0.2",
"vcrpy<7.0.0,>=6.0.1",
"pytest-watch>=4.2.0",
"pytest-xdist>=3.6.1",
"anyio>=4.7.0",
"pytest-asyncio-cooperative>=0.37.0",
]
standard = ["langchain>=0.3"]
[tool.setuptools]
packages = ["trustcall"]
[tool.setuptools.package-dir]
"trustcall" = "trustcall"
[tool.ruff]
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"D", # pydocstyle
"D401", # First line should be in imperative mood
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
[tool.pytest.ini_options]
# --strict-markers will raise errors on unknown marks.
# https://docs.pytest.org/en/7.1.x/how-to/mark.html#raising-errors-on-unknown-marks
#
# https://docs.pytest.org/en/7.1.x/reference/reference.html
# --strict-config any warnings encountered while parsing the `pytest`
# section of the configuration file raise errors.
addopts = "--strict-markers --strict-config --durations=5 -vv"
[tool.uv.sources]
trustcall = { workspace = true }
[tool.pytest-watcher]
now = true
delay = 3
patterns = ["*.py"]
[tool.hatch.build]
exclude = [
"tests/",
"docs/",
".github/",
"examples.py",
"examples/",
".editorconfig",
"db/",
"evals/",
".langgraph_api",
"*.ipynb",
".python-version",
".editorconfig",
".venv*/**",
"pytest.ini",
]