Skip to content

Commit 172229d

Browse files
authored
Merge pull request #23 from sbillinge/precommit3
precommit3
2 parents 67c82b4 + 42c55ba commit 172229d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
default_language_version:
2+
python: python3
3+
ci:
4+
autofix_commit_msg: |
5+
[pre-commit.ci] auto fixes from pre-commit hooks
6+
autofix_prs: true
7+
autoupdate_branch: 'pre-commit-autoupdate'
8+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
9+
autoupdate_schedule: monthly
10+
skip: [no-commit-to-branch]
11+
submodules: false
12+
repos:
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v4.6.0
15+
hooks:
16+
- id: check-yaml
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)