From b2f8e91601a46cf6b4908cd9eb1d05317fb88821 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 18:07:22 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.3) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51bb04a..6df0b14 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: [mdformat-gfm, mdformat-frontmatter, mdformat-footnote] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" + rev: "v4.0.0-alpha.3" hooks: - id: prettier types_or: [yaml, html, json] From 7dd9c845c2908987124207f7061c931e7e54b0eb Mon Sep 17 00:00:00 2001 From: wh1isper Date: Wed, 6 Dec 2023 10:18:33 +0800 Subject: [PATCH 2/3] Fixing pre-commit --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6df0b14..6ac6bf1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,6 +38,7 @@ repos: rev: "v4.0.0-alpha.3" hooks: - id: prettier + entry: env PRETTIER_LEGACY_CLI=1 prettier types_or: [yaml, html, json] - repo: https://github.com/pre-commit/pygrep-hooks From 66d4e83cc72f425942a20cb71c621f4f840eb107 Mon Sep 17 00:00:00 2001 From: wh1isper Date: Wed, 6 Dec 2023 10:26:56 +0800 Subject: [PATCH 3/3] Adding prettierignore for ipynb --- .prettierignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..8859c58 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +**/*.ipynb