From 4805523c74bec36c3f0504a7554ee27597b55667 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 30 Mar 2022 06:01:23 +0000 Subject: [PATCH 1/5] Bump prettier to v2.6.1 --- .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 d4a8218217ac31..8bef9e753cfb88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,7 +65,7 @@ repos: hooks: - id: yamllint - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.2.1 + rev: v2.6.1 hooks: - id: prettier stages: [manual] From d997ffe4b8e9cead5158537fa1f3bd86630c315b Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 30 Mar 2022 06:20:04 +0000 Subject: [PATCH 2/5] Enable in pre-commit --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8bef9e753cfb88..a32299a2224ab4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -68,7 +68,6 @@ repos: rev: v2.6.1 hooks: - id: prettier - stages: [manual] - repo: https://github.com/cdce8p/python-typing-update rev: v0.3.5 hooks: From ff41ece877552f71e653e93aa33648b58a1698f4 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 30 Mar 2022 06:20:23 +0000 Subject: [PATCH 3/5] Enable in CI --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b3970fca92cf4e..f447a83243e40e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -435,6 +435,11 @@ jobs: . venv/bin/activate pre-commit run --hook-stage manual check-json --all-files + - name: Run prettier + run: | + . venv/bin/activate + pre-commit run --hook-stage manual prettier --all-files + - name: Register check executables problem matcher run: | echo "::add-matcher::.github/workflows/matchers/check-executables-have-shebangs.json" From 76140c384d7e2f8c4695ef5e6fb261130adac981 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 30 Mar 2022 07:31:58 +0000 Subject: [PATCH 4/5] Adjust prettierignore --- .prettierignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 1102d3a4e26d4d..6b4d53bb20593d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,4 +2,4 @@ azure-*.yml docs/source/_templates/* homeassistant/components/*/translations/*.json -tests/fixtures/* +tests/components/*/fixtures/* From 14c555e44cc93859d7656e38ed818e8976cd4d72 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 30 Mar 2022 09:05:11 +0000 Subject: [PATCH 5/5] Don't ignore tests --- .prettierignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 6b4d53bb20593d..99dcbe1a117210 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,4 +2,3 @@ azure-*.yml docs/source/_templates/* homeassistant/components/*/translations/*.json -tests/components/*/fixtures/*