From b79a3acead50917e90e5bfb20b228bbf69c9262b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 16:30:07 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.20 → v0.16.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.20...v0.16.1) - [github.com/pycqa/isort: 9.0.0a3 → 9.0.0b1](https://github.com/pycqa/isort/compare/9.0.0a3...9.0.0b1) - [github.com/woodruffw/zizmor-pre-commit: v1.26.1 → v1.29.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.26.1...v1.29.0) - [github.com/rbubley/mirrors-prettier: v3.9.4 → v3.9.6](https://github.com/rbubley/mirrors-prettier/compare/v3.9.4...v3.9.6) - [github.com/codespell-project/codespell: v2.4.2 → v2.4.3](https://github.com/codespell-project/codespell/compare/v2.4.2...v2.4.3) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f26b1f03..49d95429 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,7 +55,7 @@ repos: # Enforce that all noqa annotations always occur with specific codes. - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.15.20' + rev: 'v0.16.1' hooks: - id: ruff-check args: ['--fix', '--show-fixes'] @@ -66,7 +66,7 @@ repos: - id: sp-repo-review - repo: https://github.com/pycqa/isort - rev: 9.0.0a3 + rev: 9.0.0b1 hooks: - id: isort name: isort (python) @@ -88,12 +88,12 @@ repos: - id: cython-lint - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.26.1 + rev: v1.29.0 hooks: - id: zizmor - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.9.4 + rev: v3.9.6 hooks: - id: prettier types_or: [css, rst, json, yaml, toml, markdown] @@ -102,7 +102,7 @@ repos: exclude: ^(.*\/)?(codeql\.yml|dependabot\.yml)$ - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell args: ['--write-changes'] From 901fe5d9fb5e07dff5524fd484021541d6df0223 Mon Sep 17 00:00:00 2001 From: Larry Bradley Date: Mon, 3 Aug 2026 13:11:26 -0400 Subject: [PATCH 2/3] Ignore ruff rule PLR0917; remove UP039 (ruff removed) --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cb8efb5a..1ab0636d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -257,12 +257,12 @@ ignore = [ 'PLR0912', 'PLR0913', 'PLR0915', + 'PLR0917', # too-many-positional-arguments 'PLR2004', 'PLW1641', # eq-without-hash 'PLW2901', 'Q000', 'SIM910', - 'UP038', ] [tool.ruff.lint.per-file-ignores] From 94d17222b4a051763360eaf9a2273c4c6ae4ff5f Mon Sep 17 00:00:00 2001 From: Larry Bradley Date: Mon, 3 Aug 2026 13:15:26 -0400 Subject: [PATCH 3/3] Fix line length --- regions/core/metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regions/core/metadata.py b/regions/core/metadata.py index d74d0231..aa30fefb 100644 --- a/regions/core/metadata.py +++ b/regions/core/metadata.py @@ -252,6 +252,7 @@ def define_mpl_kwargs(self, artist): kwargs.pop(key, None) if 'fontstyle' in kwargs: - kwargs['fontstyle'] = kwargs['fontstyle'].replace('roman', 'normal') + kwargs['fontstyle'] = kwargs['fontstyle'].replace('roman', + 'normal') return kwargs