mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-26 05:05:16 -04:00
[cmake] Cleanup accross the entire build system (#5527)
Co-authored-by: Mathieu Taillefumier <mathieu.taillefumier@free.fr>
This commit is contained in:
parent
c75d734d70
commit
f50e850e17
24 changed files with 186 additions and 119 deletions
|
|
@ -67,6 +67,18 @@ def cmakeformat():
|
|||
return run_tool(["cmake-format", "-i"], timeout=30)
|
||||
|
||||
|
||||
# ======================================================================================
|
||||
@app.route("/cmakelint", methods=["POST"])
|
||||
def cmakelint():
|
||||
# Note: the config path must be passed as a single "--flag=value" token.
|
||||
# cmake-lint's "-c"/"--config-files" option is nargs="+", so passing it as
|
||||
# two separate argv tokens ("-c", path) would greedily swallow the target
|
||||
# filename that run_tool() appends as another config file, and silently
|
||||
# scan zero files instead.
|
||||
config = f"--config-files={os.getcwd()}/cmake-lint.yaml"
|
||||
return run_tool(["cmake-lint", config], timeout=30)
|
||||
|
||||
|
||||
# ======================================================================================
|
||||
@app.route("/fortitude", methods=["POST"])
|
||||
def fortitude():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue