-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
52 lines (51 loc) · 1.92 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
node: system
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace # trims trailing whitespace.
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
- id: check-added-large-files # prevents giant files from being committed.
args: [ "--maxkb=20480" ]
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
- id: check-json # Attempts to load all json files to verify syntax.
- id: check-merge-conflict # checks for files that contain merge conflict strings.
- id: check-yaml # checks yaml files for parseable syntax.
- id: detect-private-key # detects the presence of private keys.
- id: mixed-line-ending # replaces or checks mixed line ending.
args: [ "--fix=auto" ]
- id: no-commit-to-branch
args:
- --branch=main
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.86.0
hooks:
- id: terraform_fmt
- id: terraform_tflint
args:
- --args=--recursive
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt # Runs gofmt
- id: go-imports # Runs gofmt
- id: go-mod-tidy # Tidies up and removes unused requires in go.mod using go mod tidy
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 37.150.1
hooks:
- id: renovate-config-validator
- repo: local
hooks:
- id: stop-only
name: stop-only
entry: yarn run stop-only
language: node
args: [--folder, cypress]
# - repo: https://github.com/Yelp/detect-secrets
# rev: v1.4.0
# hooks:
# - id: detect-secrets
# args: ['--baseline', '.secrets.baseline']