From 2ce6733fa1b86653247ccca9c1576f3f77ff64c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:43:20 +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/astral-sh/ruff-pre-commit: v0.14.10 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.15.9) - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.3.1) - [github.com/python-jsonschema/check-jsonschema: 0.36.0 → 0.37.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.36.0...0.37.1) - [github.com/rhysd/actionlint: v1.7.10 → v1.7.12](https://github.com/rhysd/actionlint/compare/v1.7.10...v1.7.12) - [github.com/tox-dev/pyproject-fmt: v2.11.1 → v2.21.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.11.1...v2.21.0) - [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.24.1...v0.25) --- .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 ab4348a14..670c933e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.15.9 hooks: - id: ruff-check args: [--exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.3.1 hooks: - id: black @@ -26,22 +26,22 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.36.0 + rev: 0.37.1 hooks: - id: check-github-workflows - repo: https://github.com/rhysd/actionlint - rev: v1.7.10 + rev: v1.7.12 hooks: - id: actionlint - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.11.1 + rev: v2.21.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.24.1 + rev: v0.25 hooks: - id: validate-pyproject - repo: meta From 05c6050aeb50558d9f5aad505b54adbc7230adaf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:43:47 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 1 - template.py | 30 ++++++++++-------------------- test_utils.py | 1 + 3 files changed, 11 insertions(+), 21 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a25a0b287..22c759520 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,6 @@ target_version = [ "py310" ] [tool.ruff] fix = true - lint.select = [ "C4", # flake8-comprehensions "E", # pycodestyle errors diff --git a/template.py b/template.py index a64debee7..1ff5cd13f 100644 --- a/template.py +++ b/template.py @@ -84,39 +84,29 @@
  • f-strings in 3.6!
  • """, # noqa: E501 }, - "3.6": { - "reasons": """ + "3.6": {"reasons": """
  • Future typing
  • Guaranteed dict sort order
  • breakpoint()
  • Data classes
  • And more!
  • - """ # noqa: E501 - }, - "3.7": { - "reasons": """ + """}, # noqa: E501 + "3.7": {"reasons": """
  • Walrus operator
  • And more!
  • - """ # noqa: E501 - }, - "3.8": { - "reasons": """ + """}, # noqa: E501 + "3.8": {"reasons": """
  • use list and dict for type annotations
  • And more!
  • - """ # noqa: E501 - }, - "3.9": { - "reasons": """ + """}, # noqa: E501 + "3.9": {"reasons": """
  • use match statement and write union types as X | Y
  • And more!
  • - """ # noqa: E501 - }, - "3.10": { - "reasons": """ + """}, # noqa: E501 + "3.10": {"reasons": """
  • tomllib in the stdlib, exception groups and except*
  • And more!
  • - """ # noqa: E501 - }, + """}, # noqa: E501 } REASONS = """ diff --git a/test_utils.py b/test_utils.py index 6eabe1a08..80648f7f7 100644 --- a/test_utils.py +++ b/test_utils.py @@ -2,6 +2,7 @@ """ Unit tests for utils.py """ + import unittest import utils