-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (34 loc) · 992 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-case-conflict
- id: check-json
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- repo: local
hooks:
- id: shellcheck
name: shellcheck
stages: [commit]
language: system
types: [shell] # as per https://pre-commit.com/#filtering-files-with-types
entry: pipenv run shellcheck --enable=all --shell=bash --severity=error
- id: terraform
name: terraform
stages: [commit]
language: system
types: [terraform]
# doesn't accept filename parameters
entry: terraform fmt -write=true -diff -recursive
pass_filenames: false
always_run: true
- id: flake8
name: flake8
stages: [commit]
language: system
types: [python]
entry: flake8