Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (110 loc) · 3.5 KB
/
Copy pathpyproject.toml
File metadata and controls
123 lines (110 loc) · 3.5 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
[project]
name = 'graphon'
version = "0.9.0"
description = 'Graph execution engine for agentic AI workflows.'
readme = 'README.md'
license = 'Apache-2.0'
license-files = ['LICENSE']
# Keep Python support aligned with `unstructured`, which currently declares
# `Requires-Python: <3.14,>=3.11`.
requires-python = '>=3.12,<3.14'
dependencies = [
'charset-normalizer>=2.1',
'defusedxml>=0.7',
'httpx>=0.28',
'json-repair>=0.55',
'jsonschema>=4.18',
'odfdo>=3.22.8',
'orjson>=3',
'pandas[excel]>=2.1',
'pydantic>=2.11',
'pydantic-extra-types>=2',
'pypdf>=6.21.2',
'pypdfium2>=5',
'python-docx>=1.2',
'pyyaml>=6',
'tiktoken>=0.12',
'transformers>=4',
'typing-extensions>=4.10.0',
'unstructured[docx,md,ppt,pptx]>=0.27.37',
'webvtt-py>=0.5',
]
[project.urls]
source = 'https://github.com/langgenius/graphon'
homepage = 'https://github.com/langgenius/graphon'
issues = 'https://github.com/langgenius/graphon/issues'
[dependency-groups]
dev = [
'pytest',
'pytest-benchmark',
'pytest-cov',
'pytest-mock',
'pytest-xdist',
'ruff',
'prek',
'ty',
'gevent>=26.8.0',
"import-linter>=2.15",
"hypothesis>=6.170.15",
]
[build-system]
requires = ['uv_build>=0.13.7,<0.14']
build-backend = 'uv_build'
[tool.uv]
default-groups = ['dev']
prerelease = 'disallow'
[tool.ruff]
fix = true
preview = true
required-version = '>=0.15'
[tool.ruff.lint]
select = ['ALL']
ignore = [
'missing-trailing-comma', # Conflicts with `ruff format`.
'commented-out-code', # False positives are common.
'TC', # Runtime use of typing constructs is common now.
'CPY', # Covered by the standalone LICENSE file.
'too-many-arguments', # Explicit is better than implicit.
'too-many-positional-arguments', # Complex is better than complicated.
'no-self-use', # Violates the usual practice.
'D', # Too verbose.
'FBT', # Too strict.
'relative-imports', # Too absolute.
'any-type', # We hope to enforce this, but typing is still evolving.
]
[tool.ruff.lint.pydoclint]
ignore-one-line-docstrings = true
[tool.ruff.lint.per-file-ignores]
'tests/**/*.py' = [
'assert', # Assert statements used for pytest.
'magic-value-comparison', # Magic value used in test cases.
'import-private-name', # Allow import private members from graphon module.
'compare-to-empty-string', # be more precise about assertion in tests.
# permit calls of private methods until we separate
# public interface tests from implementation tests.
'private-member-access', # allow calls of private class methods in tests
]
[tool.ty.environment]
python-platform = 'linux'
[tool.importlinter]
root_package = 'graphon'
exclude_type_checking_imports = false
[[tool.importlinter.contracts]]
id = 'architecture-layers'
name = 'Packages import within their layer or below'
type = 'layers'
containers = ['graphon']
exhaustive = true
layers = [
'dsl',
'engine',
'protocols : errors',
'graph : nodes : runtime : utils : variable_loader',
'engine_events : node_events',
'entities : variables : file : http : model_runtime : enums : prompt_entities : template_rendering : workflow_type_encoder',
]
broken_contract_guidance = 'Depend on the same or a lower architectural layer. Inject dependencies from the composition layer, and classify every new top-level module in this contract. See ARCHITECTURE.md#import-boundaries.'
[tool.pytest]
minversion = '9.0'
addopts = ['--benchmark-disable', '-n', 'auto']
testpaths = ['tests']