From 1572caf7b2a5d61494eff3d5372bdc3e49766c01 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:26:13 +0000 Subject: [PATCH] [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.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/asottile/pyupgrade: v3.10.1 → v3.19.0](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.19.0) - [github.com/asottile/blacken-docs: 1.16.0 → 1.19.1](https://github.com/asottile/blacken-docs/compare/1.16.0...1.19.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.286 → v0.7.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.286...v0.7.1) --- .pre-commit-config.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f41006e..c4ecb84 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ minimum_pre_commit_version: 2.15.0 exclude: ^LICENSES/|\.(html|csv|svg)$ default_stages: [ - commit, - merge-commit, - push, + pre-commit, + pre-merge-commit, + pre-push, prepare-commit-msg, commit-msg, post-checkout, @@ -15,39 +15,39 @@ ci: autofix_prs: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: debug-statements - id: end-of-file-fixer exclude: \.txt$ - stages: [commit, merge-commit, push, prepare-commit-msg, commit-msg, + stages: [pre-commit, pre-merge-commit, pre-push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite] - id: trailing-whitespace - stages: [commit, merge-commit, push, prepare-commit-msg, commit-msg, + stages: [pre-commit, pre-merge-commit, pre-push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite] - id: mixed-line-ending - stages: [commit, merge-commit, push, prepare-commit-msg, commit-msg, + stages: [pre-commit, pre-merge-commit, pre-push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite] args: ["--fix=lf"] exclude: (tox.ini|.*.bat) - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.19.0 hooks: - id: pyupgrade - stages: [commit] + stages: [pre-commit] args: [--py3-plus] - repo: https://github.com/asottile/blacken-docs - rev: 1.16.0 + rev: 1.19.1 hooks: - id: blacken-docs - stages: [commit] + stages: [pre-commit] additional_dependencies: [black==23.3.0] language_version: python3 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.286 + rev: v0.7.1 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -145,4 +145,4 @@ repos: pass_filenames: false language: system types: [python] - stages: [push] + stages: [pre-push]