From: Anil Belur Date: Wed, 3 Mar 2021 23:03:21 +0000 (+1000) Subject: Update pre-commit hooks with recent version X-Git-Tag: v0.7.0~14 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=2586bf9b6f66fee2ee99ce2211deccc21b3c2431;p=releng%2Fdocs-conf.git Update pre-commit hooks with recent version - Switch write-good to upstream hook. Upstream PR [1.] is merged fixes issues with the write-good npm dependencies. [1.] https://github.com/btford/write-good/pull/126 - Swith prettier to the recent version v2.1.2 Signed-off-by: Anil Belur Change-Id: I286776e837c5147a3fef9c98ce38b5750106a645 --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3122cfc..3bf54d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,8 +13,8 @@ repos: hooks: - id: gitlint - - repo: https://github.com/prettier/prettier - rev: 2.0.5 + - repo: https://github.com/prettier/pre-commit + rev: v2.1.2 hooks: - id: prettier @@ -46,13 +46,7 @@ repos: hooks: - id: yamllint - - repo: local + - repo: https://github.com/btford/write-good + rev: v1.0.4 hooks: - # TODO: Switch to upstream hook when https://github.com/btford/write-good/pull/119 is merged. - id: write-good - name: write-good - description: Check docs for English prose with write-good - entry: write-good - language: node - files: "\\.(rst|md|markdown|mdown|mkdn)$" - additional_dependencies: ["write-good"]