From 43a84a477a93df640faea5c0526dc3abeead9759 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:47:45 -0600 Subject: [PATCH] chore: [pre-commit.ci] pre-commit autoupdate (#2378) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update pre-commit hooks: - github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0 - github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.1.4 - github.com/psf/black-pre-commit-mirror: 23.9.1 → 23.10.1 - github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.1 * Exclude tests/constraints.txt from requirements-txt-fixer. --- .pre-commit-config.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1087037b32..bcb8d65591 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -22,18 +22,19 @@ repos: - id: name-tests-test args: ["--pytest-test-first"] - id: requirements-txt-fixer + exclude: tests/constraints.txt - id: trailing-whitespace # exclude generated files exclude: ^validation/|\.dtd$|\.xml$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.292" + rev: "v0.1.4" hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.9.1 + rev: 23.10.1 hooks: - id: black-jupyter @@ -41,10 +42,10 @@ repos: rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: [black==23.7.0] + additional_dependencies: [black==23.10.1] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.1 # check the oldest and newest supported Pythons hooks: - &mypy @@ -62,7 +63,7 @@ repos: rev: 1.7.0 hooks: - id: nbqa-ruff - additional_dependencies: [ruff==0.0.292] + additional_dependencies: [ruff==v0.1.4] args: ["--extend-ignore=F821,F401,F841,F811"] - repo: https://github.com/codespell-project/codespell