mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-20 05:43:55 +00:00
core: Add ruff rules for pycodestyle Warning (W) (#26964)
All auto-fixes.
This commit is contained in:
parent
9404e7af9d
commit
db8845a62a
@ -44,7 +44,7 @@ python = ">=3.12.4"
|
|||||||
[tool.poetry.extras]
|
[tool.poetry.extras]
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = [ "B", "C4", "E", "F", "I", "N", "PIE", "SIM", "T201", "UP",]
|
select = [ "B", "C4", "E", "F", "I", "N", "PIE", "SIM", "T201", "UP", "W"]
|
||||||
ignore = [ "UP007",]
|
ignore = [ "UP007",]
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
|
@ -219,7 +219,7 @@ def test_mustache_prompt_from_template(snapshot: SnapshotAssertion) -> None:
|
|||||||
yo
|
yo
|
||||||
|
|
||||||
hello
|
hello
|
||||||
is a test."""
|
is a test.""" # noqa: W293
|
||||||
)
|
)
|
||||||
assert prompt.input_variables == ["foo"]
|
assert prompt.input_variables == ["foo"]
|
||||||
if PYDANTIC_VERSION >= (2, 9):
|
if PYDANTIC_VERSION >= (2, 9):
|
||||||
|
Loading…
Reference in New Issue
Block a user