pre-commit: handle cmake files in subdirectories

Apparently "files:" receives the full path and not just the basename,
so update the regex accordingly.
pull/56/head
Yuri D'Elia 2021-07-12 10:18:00 +02:00 committed by DRracer
parent cf5b1c3955
commit 6ba7d510ca
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ repos:
rev: 'v0.6.0'
hooks:
- id: cmake-format # cmake formatter
files: ^(CMakeLists.*|.*\.cmake|.*\.cmake.in)$
files: (^|/)(CMakeLists.*|.*\.cmake|.*\.cmake.in)$
- repo: https://github.com/pre-commit/mirrors-yapf
rev: 'v0.27.0'
hooks: