From 33d47f2935b7dd5504a6f1cb78c7759b2057d3d2 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 11 Dec 2025 02:35:07 +0900 Subject: [PATCH] ruff: Enable E5 check ... to enforce maximum line length, to keep consistent code format. Change-Id: I2af21cccec55c144c863cc880cc32925aed83e17 Signed-off-by: Takashi Kajinami --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ef7a4da51..d296eccb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ line-length = 79 target-version = "py310" [tool.ruff.lint] -select = ["E4", "E7", "E9", "F", "S", "UP", "W", "C90"] +select = ["E4", "E5", "E7", "E9", "F", "S", "UP", "W", "C90"] ignore = [ # we only use asserts for type narrowing "S101", @@ -24,6 +24,8 @@ ignore = [ ] [tool.ruff.lint.per-file-ignores] "watcher/tests/*" = ["S"] +"watcher/db/sqlalchemy/alembic/*" = ["E501"] +"doc/*" = ["E501"] [tool.ruff.lint.mccabe] # Flag errors (`C901`) whenever the complexity level exceeds 5.