mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-22 19:09:57 +00:00
chore(core): cleanup pyproject.toml
(#32865)
This commit is contained in:
committed by
GitHub
parent
e36e25fe2f
commit
00f699c60d
@@ -65,13 +65,12 @@ langchain-text-splitters = { path = "../text-splitters" }
|
|||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
plugins = ["pydantic.mypy"]
|
plugins = ["pydantic.mypy"]
|
||||||
strict = "True"
|
strict = true
|
||||||
strict_bytes = "True"
|
|
||||||
enable_error_code = "deprecated"
|
enable_error_code = "deprecated"
|
||||||
|
|
||||||
# TODO: activate for 'strict' checking
|
# TODO: activate for 'strict' checking
|
||||||
disallow_any_generics = "False"
|
disallow_any_generics = false
|
||||||
warn_return_any = "False"
|
warn_return_any = false
|
||||||
|
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
@@ -83,11 +82,6 @@ docstring-code-format = true
|
|||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = [ "ALL",]
|
select = [ "ALL",]
|
||||||
ignore = [
|
ignore = [
|
||||||
"C90", # McCabe complexity
|
|
||||||
"COM812", # Messes with the formatter
|
|
||||||
"CPY", # No copyright
|
|
||||||
"FIX002", # Line contains TODO
|
|
||||||
"ISC001", # Messes with the formatter
|
|
||||||
"C90", # McCabe complexity
|
"C90", # McCabe complexity
|
||||||
"COM812", # Messes with the formatter
|
"COM812", # Messes with the formatter
|
||||||
"CPY", # No copyright
|
"CPY", # No copyright
|
||||||
@@ -101,13 +95,6 @@ ignore = [
|
|||||||
"TC003", # Doesn't play well with Pydantic
|
"TC003", # Doesn't play well with Pydantic
|
||||||
"TD002", # Missing author in TODO
|
"TD002", # Missing author in TODO
|
||||||
"TD003", # Missing issue link in TODO
|
"TD003", # Missing issue link in TODO
|
||||||
"PLR09", # Too many something (arg, statements, etc)
|
|
||||||
"RUF012", # Doesn't play well with Pydantic
|
|
||||||
"TC001", # Doesn't play well with Pydantic
|
|
||||||
"TC002", # Doesn't play well with Pydantic
|
|
||||||
"TC003", # Doesn't play well with Pydantic
|
|
||||||
"TD002", # Missing author in TODO
|
|
||||||
"TD003", # Missing issue link in TODO
|
|
||||||
|
|
||||||
# TODO rules
|
# TODO rules
|
||||||
"ANN401", # No Any types
|
"ANN401", # No Any types
|
||||||
@@ -116,7 +103,10 @@ ignore = [
|
|||||||
"ERA", # No commented-out code
|
"ERA", # No commented-out code
|
||||||
"PLR2004", # Comparison to magic number
|
"PLR2004", # Comparison to magic number
|
||||||
]
|
]
|
||||||
unfixable = ["PLW1510",]
|
unfixable = [
|
||||||
|
"B028", # People should intentionally tune the stacklevel
|
||||||
|
"PLW1510", # People should intentionally set the check argument
|
||||||
|
]
|
||||||
|
|
||||||
flake8-annotations.allow-star-arg-any = true
|
flake8-annotations.allow-star-arg-any = true
|
||||||
flake8-annotations.mypy-init-return = true
|
flake8-annotations.mypy-init-return = true
|
||||||
@@ -127,6 +117,12 @@ pydocstyle.convention = "google"
|
|||||||
pydocstyle.ignore-var-parameters = true
|
pydocstyle.ignore-var-parameters = true
|
||||||
pyupgrade.keep-runtime-typing = true
|
pyupgrade.keep-runtime-typing = true
|
||||||
|
|
||||||
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
"langchain_core/utils/mustache.py" = [ "PLW0603",]
|
||||||
|
"tests/unit_tests/test_tools.py" = [ "ARG",]
|
||||||
|
"tests/**" = [ "D1", "S", "SLF",]
|
||||||
|
"scripts/**" = [ "INP", "S",]
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
omit = [ "tests/*",]
|
omit = [ "tests/*",]
|
||||||
|
|
||||||
@@ -137,8 +133,3 @@ asyncio_mode = "auto"
|
|||||||
filterwarnings = [ "ignore::langchain_core._api.beta_decorator.LangChainBetaWarning",]
|
filterwarnings = [ "ignore::langchain_core._api.beta_decorator.LangChainBetaWarning",]
|
||||||
asyncio_default_fixture_loop_scope = "function"
|
asyncio_default_fixture_loop_scope = "function"
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
|
||||||
"langchain_core/utils/mustache.py" = [ "PLW0603",]
|
|
||||||
"tests/unit_tests/test_tools.py" = [ "ARG",]
|
|
||||||
"tests/**" = [ "D1", "S", "SLF",]
|
|
||||||
"scripts/**" = [ "INP", "S",]
|
|
||||||
|
Reference in New Issue
Block a user