Skip to content

Commit 062aa52

Browse files
committed
Add shuck (Resolves #116)
1 parent 886159c commit 062aa52

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ jobs:
7171
# Do not set UV_CONSTRAINT here: prek/uv already resolves whoowns from the copied try-repo workspace.
7272
# Constraining uv to the original checkout creates conflicting file URLs for the same package.
7373
PIP_CONSTRAINT: ${{ github.workspace }}/constraints-e2e.txt
74-
run: SKIP=check-jira-reference-in-todo,go-revive,go-fmt,go-imports,check-number-of-lines-count uvx ${{ matrix.tool }} try-repo "$PWD" --all-files --color=always --verbose
74+
run: SKIP=check-jira-reference-in-todo,go-revive,go-fmt,go-imports,check-number-of-lines-count uvx "${{ matrix.tool }}" try-repo "$PWD" --all-files --color=always --verbose

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,9 @@ repos:
218218
rev: v3.13.1-1
219219
hooks:
220220
- id: shfmt
221+
- repo: https://github.com/ewhauser/shuck
222+
rev: v0.0.39
223+
hooks:
224+
- id: shuck
225+
args:
226+
- "--fix"

.shuck.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[lint]
2+
select = ["ALL"]
3+
fixable = ["ALL"]

release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fi
1212

1313
cd "${SCRIPT_DIR}"
1414

15+
# shuck: disable=C003
1516
source "${SCRIPT_DIR}/scripts/check_release.sh"
1617
parse_release_tag "${VERSION}"
1718

0 commit comments

Comments
 (0)