-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (37 loc) · 1.19 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
---
fail_fast: true
repos:
# Generic repos
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0 # Use the ref you want to point at
hooks:
# This prevents issues if not managing git-lfs
- id: check-added-large-files
# This prevents problems for multi OS
- id: check-case-conflict
# This prevents having executables that cannot be executed
- id: check-executables-have-shebangs
# Check JSON, XML and YAML
- id: check-json
# Prevents commiting unmergeable files
- id: check-merge-conflict
# Removes spaces at end of lines
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
# AWS Creds
- id: detect-aws-credentials
# Prevents commiting to master (DISABLED FOR LAB)
# - id: no-commit-to-branch
# Change tabs for spaces
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.7
hooks:
- id: remove-tabs
args: [--whitespaces-count, "2"]
# For deploy and validation scripts
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 1.11.0
hooks:
- id: markdownlint
args: [--rules, "~MD013"]
# - id: shellcheck