precommit: Switch from markdownlint to mdformat

This commit is contained in:
Ole Schütt 2022-11-05 22:42:32 +01:00 committed by Ole Schütt
parent f95d3a4a5d
commit 786bc82ff9
35 changed files with 266 additions and 579 deletions

View file

@ -41,9 +41,10 @@ def shellcheck():
# ======================================================================================
@app.route("/markdownlint", methods=["POST"])
def markdownlint():
return run_tool(["markdownlint"])
@app.route("/mdformat", methods=["POST"])
@app.route("/markdownlint", methods=["POST"]) # for backwards compatibility
def mdformat():
return run_tool(["mdformat"])
# ======================================================================================