Skip to content

Commit 320f38c

Browse files
committed
Updating the precommit hooks
1 parent 83102ff commit 320f38c

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

.pre-commit-config.yaml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
repos:
2-
#- repo: git://github.com/pre-commit/pre-commit-hooks
3-
# rev: v3.2.0
4-
# hooks:
5-
# - id: trailing-whitespace
6-
# - id: end-of-file-fixer
7-
# - id: check-yaml
8-
# - id: check-added-large-files
9-
#
10-
#- repo: git://github.com/pycqa/pylint
11-
# rev: pylint-2.6.0
12-
# hooks:
13-
# - id: pylint
14-
# args: ["--fail-under=8"]
2+
- repo: git://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
159

16-
- repo: local
10+
- repo: git://github.com/pycqa/pylint
11+
rev: pylint-2.6.0
1712
hooks:
18-
- id: commit-msg-regex-hook
19-
name: commit-msg-regex-hook
20-
entry: commit-msg-regex-hook
21-
language: python
22-
args: ["--pattern='Signed-off-by: .* <(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|'(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*')@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])>'",
23-
"--debug"]
24-
#args: ["--pattern='[A-Z]{3,4}-[0-9]{3,6} \\| [\\w\\s]* \\| .+'",
25-
# "--debug"]
26-
stages: [commit-msg]
13+
- id: pylint
14+
args: ["--fail-under=8"]
2715

16+
# Testing for DCO
17+
#- repo: local
18+
# hooks:
19+
# - id: commit-msg-regex-hook
20+
# name: commit-msg-regex-hook
21+
# entry: commit-msg-regex-hook
22+
# language: python
23+
# args: ["--pattern='Signed-off-by: .* <(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|'(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*')@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])>'",
24+
# "--debug"]
25+
# stages: [commit-msg]

0 commit comments

Comments
 (0)