File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
default_language_version :
2
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
3
12
repos :
4
13
- repo : https://github.com/pre-commit/pre-commit-hooks
5
14
rev : v4.4.0
6
15
hooks :
7
16
- id : check-yaml
8
17
- id : end-of-file-fixer
9
18
- id : trailing-whitespace
19
+ exclude : ' \.(rst|txt)$'
10
20
- repo : https://github.com/ambv/black
11
21
rev : 23.3.0
12
22
hooks :
@@ -24,10 +34,10 @@ repos:
24
34
rev : 0.6.1
25
35
hooks :
26
36
- id : nbstripout
27
- - repo : local
37
+ - repo : https://github.com/pre-commit/pre-commit-hooks
38
+ rev : v4.4.0
28
39
hooks :
29
- - id : prevent -commit-to-main
40
+ - id : no -commit-to-branch
30
41
name : Prevent Commit to Main Branch
31
- entry : ./prevent_commit_to_main.sh
32
- language : script
33
- stages : [commit]
42
+ args : ["--branch", "main"]
43
+ stages : [pre-commit]
You can’t perform that action at this time.
0 commit comments