langchain: Add ruff rule W (#31876)

All auto-fixes
See https://docs.astral.sh/ruff/rules/#warning-w

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
Christophe Bornet 2025-07-05 23:57:30 +02:00 committed by GitHub
parent 3f4b355eef
commit bf05229029
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 125 additions and 125 deletions

View File

@ -143,7 +143,7 @@ ignore-regex = ".*(Stati Uniti|Tense=Pres).*"
ignore-words-list = "momento,collison,ned,foor,reworkd,parth,whats,aapply,mysogyny,unsecure,damon,crate,aadd,symbl,precesses,accademia,nin"
[tool.ruff.lint]
select = ["E", "F", "I", "PGH003", "T201", "D", "UP", "S"]
select = ["E", "F", "I", "PGH003", "T201", "D", "UP", "S", "W"]
pydocstyle.convention = "google"
pyupgrade.keep-runtime-typing = true

View File

@ -62,7 +62,7 @@ DEF_EXPECTED_RESULT = TestModel(
action=Actions.UPDATE,
action_input="The yamlOutputParser class is powerful",
additional_fields=None,
for_new_lines="not_escape_newline:\n escape_newline: \n",
for_new_lines="not_escape_newline:\n escape_newline:\n",
)