Skip to content

Commit 6c6eeb8

Browse files
committed
chore: Updated pre commit
1 parent b221d75 commit 6c6eeb8

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,56 @@
11
repos:
2-
- repo: https://github.com/pre-commit/mirrors-autopep8
3-
rev: v1.5.6 # Use the sha / tag you want to point at
2+
- repo: https://github.com/hhatto/autopep8
3+
rev: v2.3.2
44
hooks:
55
- id: autopep8
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v1.3.0
7+
rev: v5.0.0
88
hooks:
99
# Git state
1010
- id: check-merge-conflict
11-
stages: [commit]
11+
stages: [pre-commit]
1212
- id: check-added-large-files
13-
stages: [commit]
13+
stages: [pre-commit]
1414
# Sensitive information
1515
- id: detect-private-key
16-
stages: [commit]
16+
stages: [pre-commit]
1717
- id: detect-aws-credentials
18-
stages: [commit]
18+
stages: [pre-commit]
1919
args:
2020
- --allow-missing-credentials
2121
# Generic file state
2222
- id: trailing-whitespace
23-
stages: [commit]
23+
stages: [pre-commit]
2424
- id: mixed-line-ending
25-
stages: [commit]
25+
stages: [pre-commit]
2626
- id: end-of-file-fixer
27-
stages: [commit]
27+
stages: [pre-commit]
2828
exclude: .*\.tfvars$ # terraform fmt separates everything with blank lines leaving a trailing line at the end
2929
- id: check-executables-have-shebangs
30-
stages: [commit]
30+
stages: [pre-commit]
3131
# Language syntax/formatting
3232
- id: check-yaml
33-
stages: [commit]
33+
stages: [pre-commit]
3434
- id: check-json
35-
stages: [commit]
35+
stages: [pre-commit]
3636
- id: pretty-format-json
37-
stages: [commit]
37+
stages: [pre-commit]
3838
args:
3939
- --autofix
40+
- repo: https://github.com/pycqa/flake8
41+
rev: 7.1.2
42+
hooks:
4043
- id: flake8
41-
stages: [commit]
44+
stages: [pre-commit]
4245
args:
4346
- --ignore=F705,E123,E402
4447
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
4548
rev: v0.1.0
4649
hooks:
4750
- id: dockerfilelint
48-
stages: [commit]
51+
stages: [pre-commit]
4952
- repo: https://github.com/mattlqx/pre-commit-sign
50-
rev: v1.1.3
53+
rev: v1.2.0
5154
hooks:
5255
- id: sign-commit
5356
stages: [commit-msg]

0 commit comments

Comments
 (0)