precommit: Get fortitude auto-fixing to work

This commit is contained in:
Ole Schütt 2025-11-06 10:32:17 +01:00 committed by Ole Schütt
parent bfa23ca8e4
commit 6bdde325c8
2 changed files with 15 additions and 4 deletions

View file

@ -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"])