mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 13:45:19 -04:00
precommit: Get fortitude auto-fixing to work
This commit is contained in:
parent
bfa23ca8e4
commit
6bdde325c8
2 changed files with 15 additions and 4 deletions
|
|
@ -70,6 +70,13 @@ def cmakeformat():
|
|||
# ======================================================================================
|
||||
@app.route("/fortitude", methods=["POST"])
|
||||
def fortitude():
|
||||
config = f"--config-file={os.getcwd()}/fortitude.toml"
|
||||
return run_tool(["fortitude", config, "check", "--fix", "--unsafe-fixes"])
|
||||
|
||||
|
||||
# ======================================================================================
|
||||
@app.route("/fortitude_nofix", methods=["POST"])
|
||||
def fortitude_nofix():
|
||||
config = f"--config-file={os.getcwd()}/fortitude.toml"
|
||||
return run_tool(["fortitude", config, "check"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue