-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
38 lines (35 loc) · 1.01 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
---
default_stages: [commit, manual]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
# https://github.com/pre-commit/pre-commit-hooks/issues/273
# Not the best option but it doesn't seem to accept an 'ignore' option
args: [--unsafe]
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: check-added-large-files
- id: check-merge-conflict
- id: mixed-line-ending
- id: detect-private-key
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: no-commit-to-branch
args: ['--branch', 'master', '--branch', 'main']
- repo: https://github.com/jorisroovers/gitlint
rev: v0.17.0
hooks:
- id: gitlint
- repo: local
hooks:
- id: test
name: Test
entry: make
args: ['test']
pass_filenames: false
language: system
stages: [push]