diff --git a/.github/workflows/python-code-quality.yml b/.github/workflows/python-code-quality.yml index 5323b1c7bcf..b0358093657 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 diff --git a/man/build_topics.py b/man/build_topics.py index 6cb48be48df..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_%s.{ext}" % key.replace(" ", "_")).open( + with Path(man_dir, f"topic_{key.replace(' ', '_')}.{ext}").open( "w" ) as keyfile: if ext == "html": diff --git a/pyproject.toml b/pyproject.toml index fb2681eda28..ec2a72a3424 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