From c9992391bb316a5a3d1f523b2659041a55444d7e 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 17:13:34 +0000 Subject: [PATCH] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/abravalheri/validate-pyproject: v0.23 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.23...v0.25) - [github.com/PyCQA/autoflake: v2.3.1 → v2.3.3](https://github.com/PyCQA/autoflake/compare/v2.3.1...v2.3.3) - [github.com/pycqa/isort: 6.0.0 → 8.0.1](https://github.com/pycqa/isort/compare/6.0.0...8.0.1) - [github.com/asottile/pyupgrade: v3.19.1 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.19.1...v3.21.2) - [github.com/MarcoGorelli/auto-walrus: 0.3.4 → 0.4.1](https://github.com/MarcoGorelli/auto-walrus/compare/0.3.4...0.4.1) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.3.1) - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.6...v0.15.9) - [github.com/PyCQA/flake8: 7.1.2 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.1.2...7.3.0) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.6...v0.15.9) - [github.com/sphinx-contrib/sphinx-lint: v1.0.0 → v1.0.2](https://github.com/sphinx-contrib/sphinx-lint/compare/v1.0.0...v1.0.2) - [github.com/regebro/pyroma: 4.2 → 5.0.1](https://github.com/regebro/pyroma/compare/4.2...5.0.1) - [github.com/shellcheck-py/shellcheck-py: v0.10.0.1 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.10.0.1...v0.11.0.1) - [github.com/rbubley/mirrors-prettier: v3.5.1 → v3.8.1](https://github.com/rbubley/mirrors-prettier/compare/v3.5.1...v3.8.1) - [github.com/rhysd/actionlint: v1.7.7 → v1.7.12](https://github.com/rhysd/actionlint/compare/v1.7.7...v1.7.12) - [github.com/python-jsonschema/check-jsonschema: 0.31.1 → 0.37.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.1...0.37.1) - [github.com/adrienverge/yamllint: v1.35.1 → v1.38.0](https://github.com/adrienverge/yamllint/compare/v1.35.1...v1.38.0) - [github.com/woodruffw/zizmor-pre-commit: v1.3.1 → v1.23.1](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.3.1...v1.23.1) - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) --- .pre-commit-config.yaml | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43e28b8fe..446b26fa3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -37,47 +37,47 @@ repos: - id: name-tests-test args: ["--pytest-test-first"] - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.23 + rev: v0.25 hooks: - id: validate-pyproject name: Validate pyproject.toml # I don't yet trust ruff to do what autoflake does - repo: https://github.com/PyCQA/autoflake - rev: v2.3.1 + rev: v2.3.3 hooks: - id: autoflake args: [--in-place] # We can probably remove `isort` if we come to trust `ruff --fix`, # but we'll need to figure out the configuration to do this in `ruff` - repo: https://github.com/pycqa/isort - rev: 6.0.0 + rev: 8.0.1 hooks: - id: isort # Let's keep `pyupgrade` even though `ruff --fix` probably does most of it - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py310-plus] - repo: https://github.com/MarcoGorelli/auto-walrus - rev: 0.3.4 + rev: 0.4.1 hooks: - id: auto-walrus args: [--line-length, "100"] - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 hooks: - id: black - id: black-jupyter - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.15.9 hooks: - id: ruff args: [--fix-only, --show-fixes] # Let's keep `flake8` even though `ruff` does much of the same. # `flake8-bugbear` and `flake8-simplify` have caught things missed by `ruff`. - repo: https://github.com/PyCQA/flake8 - rev: 7.1.2 + rev: 7.3.0 hooks: - id: flake8 args: ["--config=.flake8"] @@ -87,34 +87,34 @@ repos: - flake8-bugbear==24.12.12 - flake8-simplify==0.21.0 - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell types_or: [python, rst, markdown] additional_dependencies: [tomli] files: ^(graphblas|docs)/ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.15.9 hooks: - id: ruff - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v1.0.0 + rev: v1.0.2 hooks: - id: sphinx-lint args: [--enable, all, "--disable=line-too-long,leaked-markup"] # `pyroma` may help keep our package standards up to date if best practices change. # This is probably a "low value" check though and safe to remove if we want faster pre-commit. - repo: https://github.com/regebro/pyroma - rev: "4.2" + rev: "5.0.1" hooks: - id: pyroma args: [-n, "10", .] - repo: https://github.com/shellcheck-py/shellcheck-py - rev: "v0.10.0.1" + rev: "v0.11.0.1" hooks: - id: shellcheck - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.5.1 + rev: v3.8.1 hooks: - id: prettier - repo: https://github.com/ComPWA/taplo-pre-commit @@ -122,21 +122,21 @@ repos: hooks: - id: taplo-format - repo: https://github.com/rhysd/actionlint - rev: v1.7.7 + rev: v1.7.12 hooks: - id: actionlint - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.31.1 + rev: 0.37.1 hooks: - id: check-dependabot - id: check-github-workflows - id: check-readthedocs - repo: https://github.com/adrienverge/yamllint - rev: v1.35.1 + rev: v1.38.0 hooks: - id: yamllint - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.3.1 + rev: v1.23.1 hooks: - id: zizmor - repo: meta @@ -156,7 +156,7 @@ repos: args: [graphblas/] pass_filenames: false - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: no-commit-to-branch # no commit directly to main #