-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
42 lines (38 loc) · 1.06 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
40
41
42
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
# - id: no-commit-to-branch
# args: [--branch=master]
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: pretty-format-json
args: [--autofix]
- id: check-xml
- id: debug-statements
- id: check-added-large-files
- id: check-case-conflict
- id: detect-private-key
- id: requirements-txt-fixer
- id: detect-aws-credentials
- repo: https://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check
# - repo: https://github.com/igorshubovych/markdownlint-cli
# rev: v0.23.2
# hooks:
# - id: markdownlint
- repo: https://github.com/resmio/pre-commit-doctoc
rev: v1.0.0
hooks:
- id: doctoc
args: [--title=## Table of Contents]
fail_fast: true
exclude: ^migrations/