Mercurial > dotfiles
changeset 414:7004867c436c
Add pre-commit
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 18 Jul 2021 10:05:02 +0200 |
parents | 32f1aecb9d01 |
children | 85832377f39e |
files | .chezmoiignore .pre-commit-config.yaml README.md dot_config/kitty/kitty.conf |
diffstat | 4 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoiignore Sun Jul 18 09:49:12 2021 +0200 +++ b/.chezmoiignore Sun Jul 18 10:05:02 2021 +0200 @@ -3,3 +3,4 @@ *.rej stylua.toml scripts +.pre-commit-config.yaml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.pre-commit-config.yaml Sun Jul 18 10:05:02 2021 +0200 @@ -0,0 +1,16 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.0.1 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + + - repo: local + hooks: + - id: stylua + name: Format with stylua + description: Formats lua files + entry: stylua + language: system + types: [lua]