mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
.pre-commit-config.yaml: add local hook to run pnpm install -D
This commit is contained in:
parent
0a78c0a61d
commit
d40f7858a0
@ -5,7 +5,7 @@
|
|||||||
ci:
|
ci:
|
||||||
# Attempts to use networking and fails at name resolution, local hook
|
# Attempts to use networking and fails at name resolution, local hook
|
||||||
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
# skip: [bundler-audit, pylint, latexmk, exiftool]
|
||||||
skip: [prettier]
|
skip: [pnpm-install-dev, prettier]
|
||||||
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
|
||||||
# the frequency of unnecessary PRs.
|
# the frequency of unnecessary PRs.
|
||||||
# https://github.com/pre-commit-ci/issues/issues/83
|
# https://github.com/pre-commit-ci/issues/issues/83
|
||||||
@ -132,6 +132,13 @@ repos:
|
|||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
|
- id: pnpm-install-dev
|
||||||
|
name: Install pnpm dev dependencies
|
||||||
|
entry: pnpm install -D
|
||||||
|
language: system
|
||||||
|
always_run: true
|
||||||
|
verbose: true
|
||||||
|
pass_filenames: false
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: prettier
|
name: prettier
|
||||||
entry: pnpm exec prettier --cache --ignore-unknown --write
|
entry: pnpm exec prettier --cache --ignore-unknown --write
|
||||||
|
Loading…
Reference in New Issue
Block a user