Add no-commit-to-branch hook to prevent direct commits to main (#1149)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
nate nowack 2025-07-15 09:03:56 -05:00 committed by GitHub
commit 64d469be98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -44,3 +44,5 @@ jobs:
run: uv sync --dev
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
env:
SKIP: no-commit-to-branch

View file

@ -27,3 +27,9 @@ repos:
hooks:
- id: pyright-pretty
files: ^src/|^tests/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: no-commit-to-branch
args: [--branch, main]