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)$