From b14b6475fef2ee6660610b7e88f1b670980ab566 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 3 Jul 2024 16:08:40 +0200 Subject: [PATCH] chore(backport): Update pre-commit hooks (#2528) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Backport PR https://github.com/scikit-hep/pyhf/pull/2527 * Update pre-commit hooks: - github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.5.0 - github.com/adamchainz/blacken-docs: 1.16.0 → 1.18.0 - github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1 - github.com/python-jsonschema/check-jsonschema: 0.28.4 → 0.28.6 --- .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 8012c467c0..3c42892e73 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.3" + rev: "v0.5.0" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -47,13 +47,13 @@ repos: types_or: [python, pyi, jupyter] - repo: https://github.com/adamchainz/blacken-docs - rev: 1.16.0 + rev: 1.18.0 hooks: - id: blacken-docs additional_dependencies: [black==24.4.2] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 # check the oldest and newest supported Pythons hooks: - &mypy @@ -68,14 +68,14 @@ repos: args: ["--python-version=3.12"] - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell files: ^.*\.(py|md|rst)$ args: ["-w", "-L", "hist,gaus"] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.4 + rev: 0.28.6 hooks: - id: check-readthedocs args: ["--verbose"]