mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-28 15:00:23 +00:00
chore(langchain): cleanup langchain_v1
mypy config (#32809)
Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
86fa34f3eb
commit
aa63de9366
@@ -59,10 +59,10 @@ test = [
|
|||||||
]
|
]
|
||||||
codespell = ["codespell<3.0.0,>=2.2.0"]
|
codespell = ["codespell<3.0.0,>=2.2.0"]
|
||||||
lint = [
|
lint = [
|
||||||
"ruff<0.13,>=0.12.11",
|
"ruff>=0.12.2",
|
||||||
"mypy>=1.15",
|
|
||||||
]
|
]
|
||||||
typing = [
|
typing = [
|
||||||
|
"mypy<0.18,>=1.17.1",
|
||||||
"types-toml>=0.10.8.20240310",
|
"types-toml>=0.10.8.20240310",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -88,19 +88,14 @@ exclude = ["tests/integration_tests/examples/non-utf8-encoding.py"]
|
|||||||
line-length = 100
|
line-length = 100
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
strict = "True"
|
strict = true
|
||||||
strict_bytes = "True"
|
ignore_missing_imports = true
|
||||||
ignore_missing_imports = "True"
|
|
||||||
enable_error_code = "deprecated"
|
enable_error_code = "deprecated"
|
||||||
report_deprecated_as_note = "True"
|
|
||||||
exclude = ["tests/unit_tests/agents/*", "tests/integration_tests/agents/*"]
|
exclude = ["tests/unit_tests/agents/*", "tests/integration_tests/agents/*"]
|
||||||
|
|
||||||
# TODO: activate for 'strict' checking
|
# TODO: activate for 'strict' checking
|
||||||
disallow_untyped_calls = "False"
|
disallow_any_generics = false
|
||||||
disallow_any_generics = "False"
|
warn_return_any = false
|
||||||
disallow_untyped_decorators = "False"
|
|
||||||
warn_return_any = "False"
|
|
||||||
strict_equality = "False"
|
|
||||||
|
|
||||||
[tool.codespell]
|
[tool.codespell]
|
||||||
skip = ".git,*.pdf,*.svg,*.pdf,*.yaml,*.ipynb,poetry.lock,*.min.js,*.css,package-lock.json,example_data,_dist,examples,*.trig"
|
skip = ".git,*.pdf,*.svg,*.pdf,*.yaml,*.ipynb,poetry.lock,*.min.js,*.css,package-lock.json,example_data,_dist,examples,*.trig"
|
||||||
|
Reference in New Issue
Block a user