From d0e4b1213fc40ca2b5f0a18f5a24531ba096c864 Mon Sep 17 00:00:00 2001 From: Javier Vilarroig Date: Wed, 6 May 2020 10:53:22 +0200 Subject: [PATCH] pre-commit configuration taken from master --- .pre-commit-config.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf9b7c4108d..f497a889f0f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ # Using the `$SKIP` var is preferable to using `git commit --no-verify` # because it won't prevent catching other, unrelated issues. -exclude: ^lib/.*$ +exclude: ^(lib/|src/test/.*data/).*$ default_language_version: python: python3 repos: @@ -111,3 +111,14 @@ repos: - commit - push - manual +- repo: local + hooks: + - id: line-length + name: line-length + description: Check for lines longer 100 and brakes them before 80. + entry: ./scripts/line_length.py + stages: + - commit + - push + language: python + files: \.(c|cpp|h)$