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
parent
cf5b1c3955
commit
6ba7d510ca
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue