Skip to content

Commit

Permalink
Merge pull request #29 from ssciwr/shfmt
Browse files Browse the repository at this point in the history
replace `beautysh` with `shell-fmt-go`
  • Loading branch information
dokempf authored May 3, 2024
2 parents 459b0ec + 101d14b commit b7bdfba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ repos:
hooks:
- id: validate-cff # Validate CFF format

- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.2.0
hooks:
- id: beautysh # Beautify Bash scripts
- id: shell-fmt-go # Format Bash scripts

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
Expand Down
6 changes: 3 additions & 3 deletions precommend/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ repos:
hooks:
- id: validate-cff # Validate CFF format

- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.2.0
hooks:
- id: beautysh # Beautify Bash scripts
- id: shell-fmt-go # Format Bash scripts

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
Expand Down
6 changes: 3 additions & 3 deletions precommend/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def actionlint(ctx):


@rule
def beautysh(ctx):
if ctx.tag_exists("bash"):
return "beautysh"
def shell_fmt_go(ctx):
if ctx.tag_exists("shell") or ctx.tag_exists("bash"):
return "shell-fmt-go"


@rule
Expand Down

0 comments on commit b7bdfba

Please sign in to comment.