From f64a44f2e4707f6e209ac8f96af0c578fcec951b Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 7 Aug 2019 13:50:27 +0200 Subject: [PATCH] [hook] Added checks for large files, merge conflict strings, xml and yaml syntax. --- .pre-commit-config.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c15161ed18d..fb364a3bd91 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,10 +4,15 @@ repos: hooks: - id: trailing-whitespace args: [--markdown-linebreak-ext=md, --markdown-linebreak-ext=pandoc] + - id: check-added-large-files + args: [--maxkb 1024] + - id: check-merge-conflict + - id: check-xml + - id: check-yaml - repo: local hooks: - id: git-diff-check - name: git-diff-check + name: Run git diff --check entry: git diff --check --cached -- ':!*.md' ':!*.pandoc' ':!*.asc' ':!*.dat' ':!*.ts' language: system stages: [commit, manual] -- GitLab