From 55c8da751bb389d6b0d31e99fd14851874d59e15 Mon Sep 17 00:00:00 2001 From: njzjz-bot Date: Mon, 24 Aug 2026 03:38:11 +0800 Subject: [PATCH] chore: migrate Ruff lint configuration Fixes #1895 Coding-Agent: Codex Codex-Version: codex-cli 0.149.0 Model: gpt-5.6-sol Reasoning-Effort: xhigh --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fc1c196d0..f4f6319fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,7 +79,7 @@ write_to = "dpgen/_version.py" [tool.isort] profile = "black" -[tool.ruff] +[tool.ruff.lint] select = [ "I", # isort "E", # errors @@ -108,7 +108,6 @@ ignore = [ "D401", # TODO: first line should be in imperative mood "D404", # TODO: first word of the docstring should not be This ] -ignore-init-module-imports = true [tool.ruff.lint.flake8-tidy-imports] banned-module-level-imports = [ @@ -118,5 +117,5 @@ banned-module-level-imports = [ [tool.ruff.lint.extend-per-file-ignores] "tests/**" = ["TID253"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy"