From d1f71a18dcc1726765723f85e67bdab663169330 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:04:47 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.4.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/24.4.0...26.5.1) - [github.com/pycqa/isort: 5.13.2 → 9.0.0a3](https://github.com/pycqa/isort/compare/5.13.2...9.0.0a3) - [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.15.15](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.1...v0.15.15) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v2.1.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dc6d283..cfa79c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,29 +2,29 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - - repo: https://github.com/psf/black - rev: 24.4.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 9.0.0a3 hooks: - id: isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.1 + rev: v0.15.15 hooks: - id: ruff - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.9.0 + rev: v2.1.0 hooks: - id: mypy args: [--config-file=pyproject.toml] From 898f0f693b54240f85cf4cbd790dd7c765841d6d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:07:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/sphinx_tippy.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/sphinx_tippy.py b/src/sphinx_tippy.py index 3531c1a..7578942 100644 --- a/src/sphinx_tippy.py +++ b/src/sphinx_tippy.py @@ -60,8 +60,7 @@ def setup(app: Sphinx): # or for https://api.datacite.org/dois/ # see https://support.datacite.org/docs/api-get-doi # and http://schema.datacite.org/meta/kernel-4.4/metadata.xsd - default_doi_template = dedent( - """\ + default_doi_template = dedent("""\ {% set attrs = data.message %}
Publisher: {{ attrs.publisher }}
Published: {{ attrs.created['date-parts'][0] | join('-') }}