mirror of
https://github.com/ethauvin/warp-themes.git
synced 2025-04-27 01:58:12 -07:00
pre-commit
This commit is contained in:
parent
fe71ab5409
commit
9b2455ca85
1 changed files with 21 additions and 0 deletions
21
.pre-commit-config.yaml
Normal file
21
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.0.1 # Use the ref you want to point at
|
||||
hooks:
|
||||
- id: check-case-conflict
|
||||
- id: check-json
|
||||
- id: check-merge-conflict
|
||||
- id: end-of-file-fixer
|
||||
- id: no-commit-to-branch
|
||||
args:
|
||||
- "--branch=main"
|
||||
- id: pretty-format-json
|
||||
args:
|
||||
- "--autofix"
|
||||
- "--indent=2"
|
||||
- "--top-keys=dev,beta,stable,changelogs,title,items"
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/ambv/black
|
||||
rev: 21.12b0
|
||||
hooks:
|
||||
- id: black
|
Loading…
Add table
Add a link
Reference in a new issue