We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 660f3b3 commit 42c55baCopy full SHA for 42c55ba
1 file changed
.pre-commit-config.yaml
@@ -14,6 +14,11 @@ repos:
14
rev: v4.6.0
15
hooks:
16
- id: check-yaml
17
- - id: end-of-file-fixer
18
- - id: trailing-whitespace
19
- exclude: '\.(rst|txt)$'
+ exclude: 'meta.yaml'
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ 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