From 701882383ae9b2797c962e579b614cb1ae03fcaf Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Mon, 22 Dec 2025 01:00:31 +0800 Subject: [PATCH] chore: move Ruff excludes to `ruff.extend-exclude` Previously, it was in `ruff.lint.exclude`, so exclusions were not applied to `ruff format`. --- pyproject.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5ad5101c01..3e7ed6936b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -354,6 +354,11 @@ ignore = "D413, D416, D203, D107, D213" profile = "black" force_grid_wrap = 1 +[tool.ruff] +extend-exclude = [ + "source/3rdparty/**", +] + [tool.ruff.format] docstring-code-format = true @@ -397,10 +402,6 @@ ignore = [ "D404", # TODO: first word of the docstring should not be This ] -exclude = [ - "source/3rdparty/**", -] - [tool.ruff.lint.pydocstyle] convention = "numpy"