.pre-commit-config.yaml: add local hook to run pnpm install -D

This commit is contained in:
Aminda Suomalainen 2024-06-20 21:17:16 +03:00
parent 0a78c0a61d
commit d40f7858a0
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -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