core: Add ruff rules for pycodestyle Warning (W) (#26964)

All auto-fixes.
This commit is contained in:
Christophe Bornet 2024-09-30 15:31:43 +02:00 committed by GitHub
parent 9404e7af9d
commit db8845a62a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
32 changed files with 119 additions and 119 deletions

View File

@ -44,7 +44,7 @@ python = ">=3.12.4"
[tool.poetry.extras]
[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",]
[tool.coverage.run]

View File

@ -219,7 +219,7 @@ def test_mustache_prompt_from_template(snapshot: SnapshotAssertion) -> None:
yo
hello
is a test."""
is a test.""" # noqa: W293
)
assert prompt.input_variables == ["foo"]
if PYDANTIC_VERSION >= (2, 9):