summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2020-03-29 03:23:50 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2020-03-29 03:29:40 +0200
commitf2369499b729a1c5ec249572cdbb2d5f4f3326aa (patch)
treed3704afefbd5478fcf22412ee8e5652c69ce2e17 /.pre-commit-config.yaml
parent998cd286d46cfc52b9d6bcd210cfb8327f84a8bc (diff)
Added line-length.py to call clang-format for lines > 100 only
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cf9b7c4108..8bf25a2368 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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)$