Skip to content

Commit 398fd61

Browse files
committed
tests: install latest pre-commit
1 parent 1b26bf7 commit 398fd61

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- repo: /Users/detailyang/art/opensource/personal/pre-commit-shell
2-
sha: a257808093def4b815db6924b62e806b88011e91
2+
sha: 1b26bf757e6d5b9bfed2566339c6464f44779678
33
hooks:
44
- id: shell-lint
5+
exclude: test

test/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
- repo: https://github.com/detailyang/pre-commit-shell
2-
sha: 5b860fdc6a1901fbbd12960b51877bdf0787e5fb
2+
sha: 1.0.2
33
hooks:
44
- id: shell-lint

test/.pre-commit-hooks.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/init.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ EOS
1616
tmpdir=$(mktemp -t pre-commit-shell.XXXXXX -d)
1717
cp test/test.sh "$tmpdir"
1818
cp test/.pre-commit-config.yaml "$tmpdir"
19-
cp test/.pre-commit-hooks.yaml "$tmpdir"
2019
pushd "$tmpdir"
20+
pwd
2121
git init
2222
git config user.email "detailyang@gmail.com"
2323
git config user.name "detailyang"
24-
git add .pre-commit-config.yaml .pre-commit-hooks.yaml --all ; git commit -a -m "init test case"
2524
pre-commit install
26-
pre-commit run
25+
git add .pre-commit-config.yaml; git commit -a -m "init test case"
2726
git add . --all
2827
tmpfile=$(mktemp -t pre-commit-shell.XXX)
2928
git commit -a -m "let begin test" &> "$tmpfile"

0 commit comments

Comments
 (0)