nate nowack Claude commited on
Commit
13f7b73
·
unverified ·
1 Parent(s): 9247f8d

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

Browse files
.github/workflows/run-static.yml CHANGED
@@ -44,3 +44,5 @@ jobs:
44
  run: uv sync --dev
45
  - name: Run pre-commit
46
  uses: pre-commit/action@v3.0.1
 
 
 
44
  run: uv sync --dev
45
  - name: Run pre-commit
46
  uses: pre-commit/action@v3.0.1
47
+ env:
48
+ SKIP: no-commit-to-branch
.pre-commit-config.yaml CHANGED
@@ -27,3 +27,9 @@ repos:
27
  hooks:
28
  - id: pyright-pretty
29
  files: ^src/|^tests/
 
 
 
 
 
 
 
27
  hooks:
28
  - id: pyright-pretty
29
  files: ^src/|^tests/
30
+
31
+ - repo: https://github.com/pre-commit/pre-commit-hooks
32
+ rev: v4.3.0
33
+ hooks:
34
+ - id: no-commit-to-branch
35
+ args: [--branch, main]