Skip to content

Commit f0c6de7

Browse files
committed
ci: fix typos updates by using prek instead of pre-commit
typos isn't updated correctly by pre-commit autoupdate so use prek see crate-ci/typos#390 (comment)
1 parent c91b89e commit f0c6de7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ outdated: snapshots/default/.venv
3030

3131
## update pre-commit hooks
3232
pc-update: snapshots/default/.venv
33-
cd snapshots/default && uv run pre-commit autoupdate
33+
cd snapshots/default && uvx prek autoupdate
3434
cp -p snapshots/default/.pre-commit-config.yaml {{cookiecutter.repo_name}}/
3535

3636
install-hooks: .git/hooks/pre-push
3737

3838
.git/hooks/pre-push:
39-
uvx pre-commit install --install-hooks -t pre-push
39+
uvx prek install --install-hooks -t pre-push
40+
4041
## run pre-commit git hooks on all files
4142
hooks:
42-
uvx pre-commit run --color=always --all-files --hook-stage pre-push
43+
uvx prek run --color=always --all-files --hook-stage pre-push

0 commit comments

Comments
 (0)