forked from pryorda/vmware_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (57 loc) · 1.45 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (57 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/hhatto/autopep8
rev: v2.3.2
hooks:
- id: autopep8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# Git state
- id: check-merge-conflict
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
# Sensitive information
- id: detect-private-key
stages: [pre-commit]
- id: detect-aws-credentials
stages: [pre-commit]
args:
- --allow-missing-credentials
# Generic file state
- id: trailing-whitespace
stages: [pre-commit]
- id: mixed-line-ending
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
exclude: .*\.tfvars$ # terraform fmt separates everything with blank lines leaving a trailing line at the end
- id: check-executables-have-shebangs
stages: [pre-commit]
# Language syntax/formatting
- id: check-yaml
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: pretty-format-json
stages: [pre-commit]
args:
- --autofix
- repo: https://github.com/pycqa/flake8
rev: 7.1.2
hooks:
- id: flake8
stages: [pre-commit]
args:
- --ignore=F705,E123,E402
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
stages: [pre-commit]
- repo: https://github.com/mattlqx/pre-commit-sign
rev: v1.2.0
hooks:
- id: sign-commit
stages: [commit-msg]