From 093a6920d163005024779ce6b34fea58782925d1 Mon Sep 17 00:00:00 2001 From: Fede Barcelona Date: Thu, 27 Nov 2025 17:08:18 +0100 Subject: [PATCH] ci(pre-commit): forbid commiting ot main --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9cf696..fd8e5fb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +fail_fast: true repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 @@ -6,6 +7,10 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files + - id: no-commit-to-branch + args: + - -b + - main - repo: local hooks: - id: format