-
Notifications
You must be signed in to change notification settings - Fork 62
/
pyproject.toml
127 lines (117 loc) · 3.04 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
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
[project]
name = "controlflow"
dynamic = ["version"]
description = "A framework for building agentic LLM workflows"
authors = [
{ name = "Jeremiah Lowin", email = "153965+jlowin@users.noreply.github.com" },
]
dependencies = [
"prefect>=3.0",
"jinja2>=3.1.4",
"langchain_core>=0.3",
"langchain_openai>=0.2",
"langchain-anthropic>=0.2",
"markdownify>=0.12.1",
"openai>=1.55.3",
"pydantic-settings>=2.2.1",
"textual>=0.61.1",
"tiktoken>=0.7.0",
"typer>=0.10",
"ipython>=8.18.1",
]
readme = "README.md"
requires-python = ">= 3.9"
keywords = [
"ai",
"chatbot",
"llm",
"ai orchestration",
"llm orchestration",
"agentic workflows",
"flow engineering",
"prefect",
"workflow",
"orchestration",
"python",
"GPT",
"openai",
"assistant",
"agents",
"AI agents",
"natural language processing",
]
[project.urls]
Code = "https://github.com/PrefectHQ/ControlFlow"
[project.optional-dependencies]
tests = [
"chromadb",
"duckduckgo-search",
"langchain_community",
"langchain_google_genai",
"langchain_groq",
"pytest-asyncio>=0.18.2,!=0.22.0,<0.23.0",
"pytest-env>=0.8,<2.0",
"pytest-rerunfailures>=10,<14",
"pytest-sugar>=0.9,<2.0",
"pytest>=7.0",
"pytest-timeout",
"pytest-xdist",
]
dev = [
"controlflow[tests]",
"ipython",
"pdbpp",
"pre-commit",
"ruff>=0.3.4",
"textual-dev",
"mypy",
]
[project.scripts]
controlflow = "controlflow.cli.main:app"
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/controlflow/_version.py"
[tool.rye]
managed = true
# ruff configuration
[tool.ruff]
target-version = "py311"
lint.select = ["I"] # Changed from lint.extend-select to select
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # default, but here in case we want to change it
[tool.ruff.format]
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ['I', 'F401', 'E402']
"conftest.py" = ["F401", "F403"]
'tests/fixtures/*.py' = ['F401', 'F403']
# "src/controlflow/utilities/types.py" = ['F401']
[tool.pytest.ini_options]
timeout = 120
asyncio_mode = "auto"
norecursedirs = [
"*.egg-info",
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".vscode",
"node_modules",
]
testpaths = ["tests"]
env = [
"CONTROLFLOW_TEST_MODE=1",
# use 4o-mini for tests by default
'D:CONTROLFLOW_LLM_MODEL=openai/gpt-4o-mini',
'D:CONTROLFLOW_TOOLS_VERBOSE=1',
'D:CONTROLFLOW_ENABLE_DEFAULT_PRINT_HANDLER=0',
'D:CONTROLFLOW_LOG_LEVEL=DEBUG',
'D:PREFECT_LOGGING_LEVEL=DEBUG',
]
filterwarnings = [
"ignore:Type google\\._upb\\._message\\.MessageMapContainer uses PyType_Spec:DeprecationWarning",
"ignore:Type google\\._upb\\._message\\.ScalarMapContainer uses PyType_Spec:DeprecationWarning",
"ignore:datetime.datetime.utcfromtimestamp\\(\\) is deprecated:DeprecationWarning",
]