From a5ff413900721b4ddf7659e9ae17a0d9591497c3 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Sat, 1 Feb 2020 23:01:47 +0800 Subject: [PATCH 1/2] Revert "fix(pre-commit): set pre-commit check stage to commit-msg" This reverts commit afc70133e4a81344928561fbf3bb20738dfc8a0b. --- .pre-commit-hooks.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index a5b04ac929..956f15250e 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,6 +4,5 @@ entry: cz check --commit-msg-file language: python language_version: python3 - stages: [commit-msg] require_serial: true minimum_pre_commit_version: "0.15.4" From 29cb3dc275043b2b0f6c05642ffde9120cc2967c Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Sat, 1 Feb 2020 23:02:57 +0800 Subject: [PATCH 2/2] docs(check): enforce cz check only whem committing --- docs/check.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/check.md b/docs/check.md index 224d862bfc..40e763b3b5 100644 --- a/docs/check.md +++ b/docs/check.md @@ -16,6 +16,7 @@ python -m pip install pre-commit ```yaml - repo: https://github.com/Woile/commitizen rev: master + stages: [commit-msg] hooks: - id: commitizen ```