Precommit: Format spack packages with upstream style

This commit is contained in:
Ole Schütt 2025-05-22 15:31:23 +02:00 committed by Ole Schütt
parent 899741eeca
commit 6d377b8c9f
5 changed files with 31 additions and 73 deletions

View file

@ -29,6 +29,13 @@ def black():
return run_tool(["black"])
# ======================================================================================
@app.route("/spackformat", methods=["POST"])
def spackformat():
# Run black like https://github.com/spack/spack/blob/develop/pyproject.toml
return run_tool(["black", "--line-length=99", "--skip-magic-trailing-comma"])
# ======================================================================================
@app.route("/shfmt", methods=["POST"])
def shfmt():