Skip to content

Commit 42c55ba

Browse files
committed
add lightweight precommit
1 parent 660f3b3 commit 42c55ba

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ repos:
1414
rev: v4.6.0
1515
hooks:
1616
- id: check-yaml
17-
- id: end-of-file-fixer
18-
- id: trailing-whitespace
19-
exclude: '\.(rst|txt)$'
17+
exclude: 'meta.yaml'
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v4.4.0
20+
hooks:
21+
- id: no-commit-to-branch
22+
name: Prevent Commit to Main Branch
23+
args: ["--branch", "main"]
24+
stages: [pre-commit]

0 commit comments

Comments
 (0)