Add pre-commit
This commit is contained in:
parent
c328d43192
commit
8223281252
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
ln -s ./../../.git_hooks/pre-commit .git/hooks/pre-commit
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
doctoc --title "# Table of Contents" .
|
15
.pre-commit-config.yaml
Normal file
15
.pre-commit-config.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v2.3.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 19.3b0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/thlorenz/doctoc
|
||||
rev: v1.4.0
|
||||
hooks:
|
||||
- id: doctoc
|
Loading…
Reference in New Issue
Block a user