-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
226 lines (214 loc) · 6.31 KB
/
pyproject.toml
File metadata and controls
226 lines (214 loc) · 6.31 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
[project]
name = "my-project"
version = "0.8.0"
description = "Replace this with your project description"
# authors = [{ name = "Your Name", email = "your.email@example.com" }]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10,<3.15"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
]
dependencies = [
"pipelex[mistralai,anthropic,google,google-genai,bedrock,fal]>=0.26.4",
]
[tool.setuptools]
packages = ["my_project"]
include-package-data = true
[project.optional-dependencies]
dev = [
"boto3-stubs>=1.35.24",
"mypy>=1.11.2",
"pipelex-tools>=0.3.2",
"pyright>=1.1.405",
"pytest>=9.0.1",
"pytest-sugar>=1.0.0",
"pytest_asyncio>=0.24.0",
"ruff>=0.6.8",
"types-aioboto3[bedrock,bedrock-runtime]>=13.4.0",
"types-aiofiles>=24.1.0.20240626",
"types-markdown>=3.6.0.20240316",
"types-networkx>=3.3.0.20241020",
"types-openpyxl>=3.1.5.20250306",
"types-PyYAML>=6.0.12.20250326",
]
[project.urls]
Homepage = "https://pipelex.com"
Repository = "https://github.com/yourusername/my-project" # Replace with your repository URL
Documentation = "https://docs.pipelex.com/"
[tool.uv]
required-version = ">=0.7.2"
[tool.mypy]
packages = ["my_project"]
check_untyped_defs = true
exclude = "^.*\\.venv/.*$"
mypy_path = "."
plugins = ["pydantic.mypy"]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = ["json2html"]
[tool.pyright]
include = ["my_project", "tests"]
analyzeUnannotatedFunctions = true
deprecateTypingAliases = false
disableBytesTypePromotions = true
enableExperimentalFeatures = false
enableTypeIgnoreComments = true
exclude = ["**/node_modules", "**/__pycache__"]
extraPaths = ["./tests"]
pythonVersion = "3.11"
reportAbstractUsage = "error"
reportArgumentType = "error"
reportAssertAlwaysTrue = "error"
reportAssertTypeFailure = "error"
reportAssignmentType = "error"
reportAttributeAccessIssue = "error"
reportCallInDefaultInitializer = true
reportCallIssue = "error"
reportConstantRedefinition = "error"
reportDeprecated = "error"
reportDuplicateImport = "error"
reportFunctionMemberAccess = "error"
reportGeneralTypeIssues = "error"
reportImplicitOverride = true
reportImplicitStringConcatenation = false
reportImportCycles = true
reportIncompatibleMethodOverride = "error"
reportIncompatibleVariableOverride = "error"
reportIncompleteStub = "error"
reportInconsistentConstructor = "error"
reportInconsistentOverload = "error"
reportIndexIssue = "error"
reportInvalidStringEscapeSequence = "error"
reportInvalidStubStatement = "error"
reportInvalidTypeArguments = "error"
reportInvalidTypeForm = "error"
reportInvalidTypeVarUse = "error"
reportMatchNotExhaustive = "error"
reportMissingImports = "error"
reportMissingModuleSource = "warning"
reportMissingParameterType = "error"
reportMissingSuperCall = "none"
reportMissingTypeArgument = "error"
reportMissingTypeStubs = false
reportNoOverloadImplementation = "error"
reportOperatorIssue = "error"
reportOptionalCall = "error"
reportOptionalContextManager = "error"
reportOptionalIterable = "error"
reportOptionalMemberAccess = "error"
reportOptionalOperand = "error"
reportOptionalSubscript = "error"
reportOverlappingOverload = "error"
reportPossiblyUnboundVariable = "error"
reportPrivateImportUsage = "error"
reportPrivateUsage = "error"
reportPropertyTypeMismatch = true
reportRedeclaration = "error"
reportReturnType = "error"
reportSelfClsParameterName = "error"
reportTypeCommentUsage = "error"
reportTypedDictNotRequiredAccess = "error"
reportUnboundVariable = "error"
reportUndefinedVariable = "error"
reportUninitializedInstanceVariable = "none"
reportUnknownArgumentType = "error"
reportUnknownLambdaType = "error"
reportUnknownMemberType = "error"
reportUnknownParameterType = "error"
reportUnknownVariableType = "error"
reportUnnecessaryCast = "error"
reportUnnecessaryComparison = "error"
reportUnnecessaryContains = "error"
reportUnnecessaryIsInstance = "error"
reportUnnecessaryTypeIgnoreComment = "none"
reportUnsupportedDunderAll = "error"
reportUntypedBaseClass = "error"
reportUntypedClassDecorator = "error"
reportUntypedFunctionDecorator = "error"
reportUntypedNamedTuple = "error"
reportUnusedCallResult = "none"
reportUnusedClass = "error"
reportUnusedCoroutine = "error"
reportUnusedExcept = "error"
reportUnusedExpression = "error"
reportUnusedFunction = "error"
reportUnusedImport = "none"
reportUnusedVariable = "error"
reportWildcardImportFromLibrary = "error"
strictDictionaryInference = true
strictListInference = true
strictParameterNoneValue = true
strictSetInference = true
typeCheckingMode = "strict"
[tool.pytest]
minversion = "9.0"
addopts = [
"--import-mode=importlib",
"-ra",
"-m",
"not (inference or llm or img_gen or extract or needs_output or pipelex_api)",
]
asyncio_default_fixture_loop_scope = "session"
xfail_strict = true
filterwarnings = [
"ignore:Support for class-based `config` is deprecated:DeprecationWarning",
"ignore:websockets.*is deprecated:DeprecationWarning",
"ignore:typing\\.io is deprecated:DeprecationWarning",
"ignore:typing\\.re is deprecated:DeprecationWarning",
"ignore:.*has been moved to cryptography.*",
"ignore:Use.*Types instead",
]
markers = [
"needs_output: tests that need output to be displayed",
"inference: slow and costly due to inference calls",
"llm: slow and costly due to llm inference calls",
"img_gen: slow and costly due to image generation inference calls",
"extract: slow and costly due to doc extraction inference calls",
"gha_disabled: tests that should not run in GitHub Actions",
"codex_disabled: tests that should not run in Codex",
"dry_runnable: tests that can be run in dry-run mode",
"pipelex_api: tests that require access to the Pipelex API",
]
[tool.ruff]
exclude = [
".cursor",
".git",
".github",
".mypy_cache",
".ruff_cache",
".venv",
".vscode",
"trigger_pipeline",
]
line-length = 150
target-version = "py311"
[tool.ruff.format]
[tool.ruff.lint]
ignore = ["F401"]
external = ["F401"]
select = [
"E4",
"E7",
"E9",
"F",
"A001",
"A002",
"A003",
"RUF008",
"RUF009",
"RUF012",
"RUF013",
"RUF100",
"E501",
"I",
]