From 93706ca21a0fcd4575d783c8d54f115f8ca62ad6 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 30 Mar 2022 13:10:48 +0200 Subject: [PATCH] Bump prettier to v2.6.1 and enable on CI (#68877) --- .github/workflows/ci.yaml | 5 +++++ .pre-commit-config.yaml | 3 +-- .prettierignore | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b3970fca92c..f447a83243e 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" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d4a8218217a..a32299a2224 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,10 +65,9 @@ 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] - repo: https://github.com/cdce8p/python-typing-update rev: v0.3.5 hooks: diff --git a/.prettierignore b/.prettierignore index 1102d3a4e26..99dcbe1a117 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,4 +2,3 @@ azure-*.yml docs/source/_templates/* homeassistant/components/*/translations/*.json -tests/fixtures/*