mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 13:45:19 -04:00
precommit: Add shfmt to format shell scripts
This commit is contained in:
parent
1a5f6eddc8
commit
2e2218d9a9
4 changed files with 20 additions and 2 deletions
|
|
@ -28,6 +28,12 @@ def black():
|
|||
return run_tool(["black"])
|
||||
|
||||
|
||||
# ======================================================================================
|
||||
@app.route("/shfmt", methods=["POST"])
|
||||
def shfmt():
|
||||
return run_tool(["shfmt", "-i=2", "-ci", "-sr", "-w"])
|
||||
|
||||
|
||||
# ======================================================================================
|
||||
@app.route("/shellcheck", methods=["POST"])
|
||||
def shellcheck():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue