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
|
|
@ -52,6 +52,12 @@ def clangformat():
|
|||
return run_tool(["clang-format", "--style=llvm", "-i"])
|
||||
|
||||
|
||||
# ======================================================================================
|
||||
@app.route("/cmakeformat", methods=["POST"])
|
||||
def cmakeformat():
|
||||
return run_tool(["cmake-format", "-i"])
|
||||
|
||||
|
||||
# ======================================================================================
|
||||
def run_tool(cmd, timeout=30):
|
||||
assert len(request.files) == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue