-
Notifications
You must be signed in to change notification settings - Fork 140
/
.pre-commit-config.yaml
37 lines (33 loc) · 1000 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# General
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: templates/*
- id: check-added-large-files
- id: pretty-format-json
args: [--autofix, --indent, '4']
- id: no-commit-to-branch
args: ['--branch', 'master']
# Secrets
- repo: https://github.com/awslabs/git-secrets
rev: 5e28df337746db4f070c84f7069d365bfd0d72a8
hooks:
- id: git-secrets
# CloudFormation
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.27.1
hooks:
- id: cfn-python-lint
name: AWS CloudFormation Linter
files: \.(template)$
args: [--ignore-checks=W3002]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.1
hooks:
- id: prettier