From 9468ef9c1f808d45330e477a5610fbd3284fb077 Mon Sep 17 00:00:00 2001 From: furedea <132188853+furedea@users.noreply.github.com> Date: Sat, 14 Nov 2026 18:21:24 +0900 Subject: [PATCH] build(ruff): enable lines-after-imports, DOC201/402/501 and UP042 Move the python-style prose rules into machine checks (furedea/agent-config#74). Co-Authored-By: Claude Sonnet 5.5 --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 1a82fc7..9d6d4a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,6 +104,11 @@ select = [ "INP", "C901", "PLR1702", + # preview rules: explicit-preview-rules = true needs the full rule IDs + "DOC201", + "DOC402", + "DOC501", + "UP042", ] ignore = [ "G004", @@ -129,6 +134,9 @@ ignore = [ [tool.ruff.lint.per-file-ignores] "tests/**" = ["D", "PLR0913"] +[tool.ruff.lint.isort] +lines-after-imports = 2 + [tool.ruff.lint.pydocstyle] convention = "google"