From 0fb07976cc29a0aad9799e61a1a487919dcc167e Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Mon, 31 May 2021 10:40:08 +0200 Subject: [PATCH] CI: Update pre-commit checks to latest versions This updates the pre-commit checks to the latest versions of the checks we're using and fixes a linting issue in our yaml config. Signed-off-by: Guillaume Lambert Change-Id: Ib0741cb73f678597576c84c3a1064c88931599d4 --- .pre-commit-config.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 820563c..173578d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,17 +4,21 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.1.0 + rev: v3.4.0 hooks: - id: trailing-whitespace + - id: no-commit-to-branch + args: + - --branch=master + - --branch=main - repo: https://github.com/jorisroovers/gitlint - rev: v0.13.1 + rev: v0.15.1 hooks: - id: gitlint - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.1.2 + rev: v2.2.1 hooks: - id: prettier stages: [commit] -- 2.16.6