From a36ed39487dfc46c44290bd97ecc39be755777db Mon Sep 17 00:00:00 2001 From: Simon Alibert <75076266+aliberts@users.noreply.github.com> Date: Thu, 13 Mar 2025 13:29:55 +0100 Subject: [PATCH] Improve pre-commit config (#857) --- .pre-commit-config.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 868813bc..395637d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,13 @@ exclude: ^(tests/data) default_language_version: python: python3.10 repos: + ##### Meta ##### + - repo: meta + hooks: + - id: check-useless-excludes + - id: check-hooks-apply + + ##### Style / Misc. ##### - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 @@ -28,15 +35,18 @@ repos: - id: check-toml - id: end-of-file-fixer - id: trailing-whitespace + - repo: https://github.com/crate-ci/typos - rev: v1 + rev: v1.30.2 hooks: - id: typos args: [--force-exclude] + - repo: https://github.com/asottile/pyupgrade rev: v3.19.1 hooks: - id: pyupgrade + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.9.10 hooks: @@ -44,15 +54,18 @@ repos: args: [--fix] - id: ruff-format + ##### Security ##### - repo: https://github.com/gitleaks/gitleaks rev: v8.24.0 hooks: - id: gitleaks + - repo: https://github.com/woodruffw/zizmor-pre-commit rev: v1.4.1 hooks: - id: zizmor + - repo: https://github.com/PyCQA/bandit rev: 1.8.3 hooks: