From 0ecd43ca651b5c1a61d98290e5773c12db77d9b5 Mon Sep 17 00:00:00 2001 From: Gonzalo Mellizo-Soto Date: Wed, 24 Apr 2024 16:05:51 +0200 Subject: [PATCH] Fix pre-commit regex --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23fdaa0..430b2b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,16 +4,16 @@ repos: hooks: - id: check-yaml - id: end-of-file-fixer - exclude: docs/*|examples/* + exclude: docs/.*|examples/.* - id: trailing-whitespace - exclude: docs/*|examples/* + exclude: docs/.*|examples/.* - id: check-added-large-files - exclude: examples/* + exclude: examples/.* - id: check-merge-conflict - exclude: examples/* + exclude: examples/.* - id: no-commit-to-branch args: [-b main] - exclude: examples/* + exclude: examples/.* - repo: https://github.com/asottile/pyupgrade rev: v3.4.0 hooks: @@ -26,17 +26,17 @@ repos: entry: isort language: system files: "py$" - exclude: examples/* + exclude: examples/.* args: ["--profile", "black"] - id: black name: black entry: black language: system files: "py$" - exclude: examples/* + exclude: examples/.* - id: ruff name: ruff entry: ruff language: system files: "py$" - exclude: examples/* + exclude: examples/.*