Skip to content

Commit cae7bff

Browse files
fix(ci): add mypy overrides for optional dependency imports
Add ignore_missing_imports for optional packages (chainlit, litellm, opentelemetry, langchain providers, holysheet, yaml) that may not be installed in CI environments. Fixes type check pipeline failures.
1 parent 7499efd commit cae7bff

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,17 @@ module = [
219219
"agentomatic.optimize.*",
220220
]
221221
disable_error_code = ["call-arg", "override", "misc", "attr-defined"]
222+
223+
# Optional dependencies that may not be installed
224+
[[tool.mypy.overrides]]
225+
module = [
226+
"chainlit",
227+
"chainlit.*",
228+
"litellm",
229+
"opentelemetry.*",
230+
"langchain_openai",
231+
"langchain_google_vertexai",
232+
"holysheet",
233+
"yaml",
234+
]
235+
ignore_missing_imports = true

0 commit comments

Comments
 (0)