Add start of a pre-commit config.

This commit is contained in:
Sacha Ligthert 2024-08-14 17:13:38 +02:00
parent b08e0ea3e8
commit 69a1c68fb6
3 changed files with 9 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
builds
builds

8
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 # this is optional, use `pre-commit autoupdate` to get the latest rev!
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

View File

@ -10,4 +10,3 @@ tasks:
- rm builds/* || true
- go tool dist list | grep -v android | grep -v ios | grep -v wasip1 | awk -F '/' '{printf "echo Compiling %s/%s; env CGO_ENABLED=1 GOOS=%s GOARCH=%s go build -o builds/rowboz.%s-%s\n",$1,$2,$1,$2,$1,$2 }' | sh
- for i in `ls builds/*windows*`; do mv -v $i $i.exe; done