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/*