From efa931ddcfd81c1518daf5fffa267ca3b43033e5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 18:11:01 +0000 Subject: [PATCH 1/5] CI(deps): Update ruff to v0.15.15 --- .github/workflows/python-code-quality.yml | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-code-quality.yml b/.github/workflows/python-code-quality.yml index 51e2061bd9c..5b4af0549c8 100644 --- a/.github/workflows/python-code-quality.yml +++ b/.github/workflows/python-code-quality.yml @@ -36,7 +36,7 @@ jobs: # renovate: datasource=pypi depName=bandit BANDIT_VERSION: "1.9.4" # renovate: datasource=pypi depName=ruff - RUFF_VERSION: "0.15.7" + RUFF_VERSION: "0.15.15" runs-on: ${{ matrix.os }} permissions: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c111c0821c..3bf11371a43 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,7 +53,7 @@ repos: - id: detect-private-key - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.15.7 + rev: v0.15.15 hooks: # Run the linter. - id: ruff-check From 338dc00a3207ce4b7f7fa26c1be1831809d9a5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 31 May 2026 21:29:00 -0400 Subject: [PATCH 2/5] checks: Ignore new ruff rules RUF050 and PLW0717 --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index fb2681eda28..c7b890f821e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -257,6 +257,7 @@ ignore = [ "PLW0602", # global-variable-not-assigned "PLW0603", # global-statement "PLW0604", # global-at-module-level + "PLW0717", # too-many-statements-in-try-clause "PLW1508", # invalid-envvar-default "PLW1510", # subprocess-run-without-check "PLW1641", # eq-without-hash @@ -282,6 +283,7 @@ ignore = [ "RUF012", # mutable-class-default "RUF015", # unnecessary-iterable-allocation-for-first-element "RUF019", # unnecessary-key-check + "RUF050", # unnecessary-if "RUF059", # unused-unpacked-variable "RUF067", # non-empty-init-module "RUF100", # unused-noqa From 9af9e297fb42cac1ba200f6d9a7a0792731bd241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 1 Jun 2026 05:37:37 -0400 Subject: [PATCH 3/5] Fix string formatting in build_topics function --- man/build_topics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/build_topics.py b/man/build_topics.py index 6cb48be48df..8983b94e35b 100644 --- a/man/build_topics.py +++ b/man/build_topics.py @@ -115,7 +115,7 @@ def build_topics(ext): topicsfile.write(headertopics_tmpl) for key, values in sorted(keywords.items(), key=lambda s: s[0].lower()): - with Path(man_dir, f"topic_%s.{ext}" % key.replace(" ", "_")).open( + with Path(man_dir, f"topic_{key.replace(" ", "_")}.{ext}").open( "w" ) as keyfile: if ext == "html": From df6a8b8ab2e32a2a1a2794d79dda737e4aa3feac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 1 Jun 2026 09:05:20 -0400 Subject: [PATCH 4/5] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c7b890f821e..ec2a72a3424 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -283,7 +283,7 @@ ignore = [ "RUF012", # mutable-class-default "RUF015", # unnecessary-iterable-allocation-for-first-element "RUF019", # unnecessary-key-check - "RUF050", # unnecessary-if + "RUF050", # unnecessary-if "RUF059", # unused-unpacked-variable "RUF067", # non-empty-init-module "RUF100", # unused-noqa From 5d5c4e15408e4481469479a76a6fd2838c4e7275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 1 Jun 2026 12:35:04 -0400 Subject: [PATCH 5/5] Update build_topics.py --- man/build_topics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/build_topics.py b/man/build_topics.py index 8983b94e35b..3b8e6c9ee09 100644 --- a/man/build_topics.py +++ b/man/build_topics.py @@ -115,7 +115,7 @@ def build_topics(ext): topicsfile.write(headertopics_tmpl) for key, values in sorted(keywords.items(), key=lambda s: s[0].lower()): - with Path(man_dir, f"topic_{key.replace(" ", "_")}.{ext}").open( + with Path(man_dir, f"topic_{key.replace(' ', '_')}.{ext}").open( "w" ) as keyfile: if ext == "html":