-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.25 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
repos:
# https://docs.franco.net.eu.org/md-toc/pre_commit_hook.html
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.5.0'
hooks:
- id: check-added-large-files
args: ['--maxkb=16384']
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
args: ['--assume-in-merge']
- id: check-symlinks
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: no-commit-to-branch
- id: pretty-format-json
args: ['--autofix', '--indent', '4']
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.3'
hooks:
- id: editorconfig-checker
alias: ec
args: [-disable-insert-final-newline, '-exclude', 'LICENSE']
# exclude: '^ripi/(.*)$'
- repo: https://github.com/doublify/pre-commit-rust
rev: 'v1.0'
hooks:
- id: fmt
- id: clippy
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: 'v1.1.2'
hooks:
# https://github.com/jonschlinkert/markdown-toc
- id: markdown-toc
args: [--maxdepth, '3', --bullets, '-', -i]
- repo: https://github.com/sirwart/ripsecrets
rev: 'v0.1.7'
hooks:
- id: ripsecrets