Skip to content

Commit 033d1d8

Browse files
committed
chore: Updated pre commit
Precommit-Verified: 11f3ca9340a9a861731158f48ada77a713b6eb1d1f8060234415ae7f6d69b4c6
1 parent b221d75 commit 033d1d8

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.pre-commit-config.yaml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
1+
default_install_hook_types: [pre-commit, commit-msg]
12
repos:
2-
- repo: https://github.com/pre-commit/mirrors-autopep8
3-
rev: v1.5.6 # Use the sha / tag you want to point at
3+
- repo: https://github.com/hhatto/autopep8
4+
rev: v2.3.2
45
hooks:
56
- id: autopep8
67
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v1.3.0
8+
rev: v5.0.0
89
hooks:
910
# Git state
1011
- id: check-merge-conflict
11-
stages: [commit]
12+
stages: [pre-commit]
1213
- id: check-added-large-files
13-
stages: [commit]
14+
stages: [pre-commit]
1415
# Sensitive information
1516
- id: detect-private-key
16-
stages: [commit]
17+
stages: [pre-commit]
1718
- id: detect-aws-credentials
18-
stages: [commit]
19+
stages: [pre-commit]
1920
args:
2021
- --allow-missing-credentials
2122
# Generic file state
2223
- id: trailing-whitespace
23-
stages: [commit]
24+
stages: [pre-commit]
2425
- id: mixed-line-ending
25-
stages: [commit]
26+
stages: [pre-commit]
2627
- id: end-of-file-fixer
27-
stages: [commit]
28+
stages: [pre-commit]
2829
exclude: .*\.tfvars$ # terraform fmt separates everything with blank lines leaving a trailing line at the end
2930
- id: check-executables-have-shebangs
30-
stages: [commit]
31+
stages: [pre-commit]
3132
# Language syntax/formatting
3233
- id: check-yaml
33-
stages: [commit]
34+
stages: [pre-commit]
3435
- id: check-json
35-
stages: [commit]
36+
stages: [pre-commit]
3637
- id: pretty-format-json
37-
stages: [commit]
38+
stages: [pre-commit]
3839
args:
3940
- --autofix
41+
- repo: https://github.com/pycqa/flake8
42+
rev: 7.1.2
43+
hooks:
4044
- id: flake8
41-
stages: [commit]
45+
stages: [pre-commit]
4246
args:
4347
- --ignore=F705,E123,E402
4448
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
4549
rev: v0.1.0
4650
hooks:
4751
- id: dockerfilelint
48-
stages: [commit]
52+
stages: [pre-commit]
4953
- repo: https://github.com/mattlqx/pre-commit-sign
50-
rev: v1.1.3
54+
rev: v1.2.0
5155
hooks:
5256
- id: sign-commit
5357
stages: [commit-msg]

0 commit comments

Comments
 (0)