-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
40 lines (40 loc) · 968 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
38
39
40
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
# Git state
- id: check-merge-conflict
stages: [commit]
- id: check-added-large-files
stages: [commit]
# Sensitive information
- id: detect-private-key
stages: [commit]
- id: detect-aws-credentials
stages: [commit]
# Generic file state
- id: trailing-whitespace
stages: [commit]
- id: mixed-line-ending
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: check-executables-have-shebangs
stages: [commit]
# Language syntax/formatting
- id: check-yaml
stages: [commit]
- repo: local
hooks:
- id: rubocop
name: Check Ruby style with rubocop
description: Enforce Ruby style guide with rubocop
entry: bin/rubocop-wrapper.sh
language: script
types: ['ruby']
stages: [commit]
verbose: true
- repo: https://github.com/mattlqx/pre-commit-sign
rev: v1.1.1
hooks:
- id: sign-commit