forked from aws-samples/amazon-cloudfront-secure-static-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (29 loc) · 894 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
# 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]