precommit: Add cmake-format

This commit is contained in:
Ole Schütt 2021-11-29 18:50:59 +01:00 committed by Ole Schütt
parent 101ec7dbd9
commit 3120b66bfc
3 changed files with 12 additions and 0 deletions

View file

@ -201,6 +201,9 @@ def process_file(fn, allow_modifications):
if re.match(r".*\.md$", fn):
run_remote_tool("markdownlint", fn)
if re.match(r"(.*/CMakeLists.txt)|(.*\.cmake)$", fn):
run_remote_tool("cmakeformat", fn)
if re.match(r"./data/.*POTENTIALS?$", fn):
check_data_files()