diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1deb91c..a4ced63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: # the frequency of unnecessary PRs. # https://github.com/pre-commit-ci/issues/issues/83 autoupdate_schedule: quarterly - skip: [latexmk, exiftool, prettier] + skip: [latexmk, exiftool, install-dev-deps, prettier] repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -71,21 +71,18 @@ repos: - repo: local hooks: + - id: install-dev-deps + name: Install pnpm dev dependencies + entry: corepack pnpm install -D + language: system + always_run: true + verbose: true + pass_filenames: false - id: prettier name: prettier - entry: pnpm exec prettier --cache --ignore-unknown --write + entry: corepack pnpm exec prettier --cache --ignore-unknown --write language: system exclude_types: [json] - - - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: "2.7.3" - hooks: - - id: editorconfig-checker - alias: ec - args: [-disable-max-line-length] - - - repo: local - hooks: - id: latexmk name: latexmk entry: latexmk -quiet -f @@ -93,12 +90,16 @@ repos: types: [text, tex] # I have no idea where latexmk wants the template exclude: LaTeX\/standardi-asiakirja.tex - - # Fedora: perl-Image-ExifTool - - repo: local - hooks: + # Fedora: perl-Image-ExifTool - id: exiftool name: Remove all EXIF metadata using exiftool entry: exiftool -all= language: system types: [image] + + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: "2.7.3" + hooks: + - id: editorconfig-checker + alias: ec + args: [-disable-max-line-length] diff --git a/package.json b/package.json index 88a294a..2f01fdb 100644 --- a/package.json +++ b/package.json @@ -4,5 +4,6 @@ "prettier": "3.3.2", "prettier-plugin-sh": "0.14.0", "prettier-plugin-toml": "2.0.1" - } + }, + "packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a" }