mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-26 21:25:19 -04:00
precommit: Add cmake-format
This commit is contained in:
parent
101ec7dbd9
commit
3120b66bfc
3 changed files with 12 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue