-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (29 loc) · 1.17 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# Git Style
- id: check-added-large-files # prevent large files from commit (default=500kb)
- id: check-merge-conflict # check for merge conflict strings
- id: check-vcs-permalinks
- id: forbid-new-submodules
- id: no-commit-to-branch # main branch can only be updated via PR
args: [--branch, main]
# Common Errors
- id: check-executables-have-shebangs
- id: check-yaml # validate yaml file syntax
- id: end-of-file-fixer # ensure files end in newline char
exclude: src/.*/__codegen__/.* # don't modify codegen'd content
exclude_types: [graphql, svg, json]
- id: trailing-whitespace
exclude: src/.*/__codegen__/.* # don't modify codegen'd content
args: [--markdown-linebreak-ext=md]
# Security
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker # lint dockerfiles using the hadolint docker image
args: ["--ignore", "DL3008"]