-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.63 KB
/
.pre-commit-config.yaml
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
58
59
fail_fast: true
repos:
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
- args:
- --aggressive
- --aggressive
- --aggressive
- --in-place
- --max-line-length=80
- --pep8-passes=5
id: autopep8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-ast
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-yaml
- exclude: "(?x)^(\n .*.terraform/.*|\n tmpl\\/.*.sops\\.ya?ml\n )$\n"
id: end-of-file-fixer
- id: mixed-line-ending
- args:
- --markdown-linebreak-ext=md
id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- args:
- --config=pyproject.toml
id: flake8
- repo: https://github.com/djh00t/sops-pre-commit
rev: v0.0.2f
hooks:
- exclude: (tmpl\/.*.sops\.ya?ml|knative\-operator\.ya?ml)
id: kubernetes-secret
- id: aws-access-key-id
- id: aws-secret-access-key
- id: rsa-private-key
- id: ssh-private-key
- id: github-access-token
- id: generic-api-key
- id: gcp-api-key
- id: jwt
- id: slack-webhook-url
- id: google-oauth-client-secret
- repo: local
hooks:
- id: commit-msg
name: Commit Message Validator
entry: python klingon_tools/git_commit_validate.py
language: system
stages: [commit-msg]