From d16a3be24cf54df02b1b5773b98a69777dac4c22 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 20 Jun 2024 09:01:24 +0300 Subject: [PATCH] pre-commit autoupdate, switch to local prettier --- .gitignore | 2 ++ .pre-commit-config.yaml | 9 ++++++--- package.json | 6 ++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c07ea0f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +pnpm-lock.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index baedc25..1debff2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,13 +3,14 @@ ci: # the frequency of unnecessary PRs. # https://github.com/pre-commit-ci/issues/issues/83 autoupdate_schedule: quarterly + skip: [prettier] default_language_version: python: pypy3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: trailing-whitespace args: ["--markdown-linebreak-ext", "md"] @@ -23,10 +24,12 @@ repos: - id: detect-private-key - id: fix-byte-order-marker - - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.3" + - repo: local hooks: - id: prettier + name: prettier + entry: pnpm exec prettier --cache --ignore-unknown --write + language: system - repo: https://github.com/editorconfig-checker/editorconfig-checker.python rev: "2.7.3" diff --git a/package.json b/package.json new file mode 100644 index 0000000..fc84af9 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "devDependencies": { + "prettier": "3.3.2", + "prettier-plugin-sh": "0.14.0" + } +}