mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 05:35:28 -04:00
Precommit: Format spack packages with upstream style
This commit is contained in:
parent
899741eeca
commit
6d377b8c9f
5 changed files with 31 additions and 73 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue