From 68aa6e77e1d3f37c5de77f7996fe663dcdb90314 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <6d0847b9@opayq.com> Date: Thu, 27 Sep 2018 20:44:09 +0300 Subject: [PATCH 1/2] Don't run end-of-file-fixer hook for the commit-msg stage --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 1f62b3d7..4763337d 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -176,6 +176,7 @@ types: [text] # for backward compatibility files: '' + stages: [commit, push, manual] minimum_pre_commit_version: 0.15.0 - id: file-contents-sorter name: File Contents Sorter From 5f6a443de22f487827348db5e4fbc1d7f0008fb8 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <6d0847b9@opayq.com> Date: Thu, 27 Sep 2018 21:09:33 +0300 Subject: [PATCH 2/2] Fix options ordering --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4763337d..363e82aa 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -174,9 +174,9 @@ entry: end-of-file-fixer language: python types: [text] + stages: [commit, push, manual] # for backward compatibility files: '' - stages: [commit, push, manual] minimum_pre_commit_version: 0.15.0 - id: file-contents-sorter name: File Contents Sorter