Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
description: Shell source code formatter (build from source)
language: golang
# Note: keep Go version in `go.mod` in sync with shfmt's required Go version
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.10.0]
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.11.0]
entry: shfmt
args: [-w, -s]
types: [shell]
Expand All @@ -27,7 +27,7 @@
description: Shell source code formatter (Docker image)
language: docker_image
# Note: use the top level multiplatform image digest here
entry: --net none mvdan/shfmt:v3.10.0@sha256:d19cc37644449fe9a488f234d2c0cf0b770eaf6a5a40e30103e8099013ef8f9e
entry: --net none mvdan/shfmt:v3.11.0@sha256:9c6f228b50928e4b174d13da1b10adacd7bbb50796527f58a85ea18e155e0806
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Usage in `.pre-commit-config.yaml`:

```yaml
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-2
rev: v3.11.0-1
hooks:
# Choose one of:
- id: shfmt # prebuilt upstream executable
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/scop/pre-commit-shfmt/v3

go 1.19
go 1.23
34 changes: 17 additions & 17 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = shfmt_py
version = 3.10.0
version = 3.11.0-1
description = Shell source code formatter
url = https://github.com/scop/pre-commit-shfmt
# license here is for shfmt proper; Python packaging related files may have others, see their contents and classifiers below
Expand Down Expand Up @@ -28,47 +28,47 @@ download_scripts =
[shfmt]
group = shfmt-binary
marker = sys_platform == "darwin" and platform_machine == "x86_64"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_darwin_amd64
sha256 = ef8d970b3f695a7e8e7d40730eedd2d935ab9599f78a365f319c515bc59d4c83
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_darwin_amd64
sha256 = 810a76cb7c78351e021c8025f344b12149d8426ce51609a179af68109ed5698e
[shfmt]
group = shfmt-binary
marker = sys_platform == "darwin" and platform_machine == "arm64"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_darwin_arm64
sha256 = 86030533a823c0a7cd92dee0f74094e5b901c3277b43def6337d5e19e56fe553
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_darwin_arm64
sha256 = af206d234dff5d05d9ac355529b2b33a7a78e13fab9b59db777746aab3e72530
[shfmt]
group = shfmt-binary
# TODO: verify i386
marker = sys_platform == "linux" and platform_machine == "i386"
marker = sys_platform == "linux" and platform_machine == "i686"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_386
sha256 = a49ee3616afd262796e6791711ba62759d424cc85808390a5ac516af8001aa72
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_linux_386
sha256 = 4bd973b2146dbb49a1aff9c16a782b0adeec974728ac063ac793f884f6a951f7
[shfmt]
group = shfmt-binary
marker = sys_platform == "linux" and platform_machine == "x86_64"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_amd64
sha256 = 1f57a384d59542f8fac5f503da1f3ea44242f46dff969569e80b524d64b71dbc
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_linux_amd64
sha256 = 1904ec6bac715c1d05cd7f6612eec8f67a625c3749cb327e5bfb4127d09035ff
[shfmt]
group = shfmt-binary
# TODO: verify armv6hf
marker = sys_platform == "linux" and platform_machine == "armv6hf"
marker = sys_platform == "linux" and platform_machine == "armv7l"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_arm
sha256 = 493c612d8f07ad60b3030bd84d7870cca2dc87e0fb06d2fdd93b2264460668db
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_linux_arm
sha256 = 00a243112f22a94594a82cb9399b086cf51441e3d9fef98b1203d633863506ed
[shfmt]
group = shfmt-binary
marker = sys_platform == "linux" and platform_machine == "aarch64"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_arm64
sha256 = 9d23013d56640e228732fd2a04a9ede0ab46bc2d764bf22a4a35fb1b14d707a8
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_linux_arm64
sha256 = b3976121710fd4b12bf641b0a7fb2686da598fb0da9f148c641b61b54cfa3407
[shfmt.exe]
group = shfmt-binary
# TODO: verify both
marker = sys_platform == "win32" and platform_machine == "x86"
marker = sys_platform == "cygwin" and platform_machine == "i386"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_windows_386.exe
sha256 = 695d43b600103d8e8beb7460764f43da1d679576e67130012507a38238ef7dbd
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_windows_386.exe
sha256 = facfb70de36cc3b15d59938fd840d6eaa8dc5446767f043265038a49eb719ec7
[shfmt.exe]
group = shfmt-binary
marker = sys_platform == "win32" and platform_machine == "AMD64"
marker = sys_platform == "cygwin" and platform_machine == "x86_64"
url = https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_windows_amd64.exe
sha256 = 6e4c6acd38de7b4b1ba8f8082b9e688df8c9b861d3f8b2e7bb1b7270201a3587
url = https://github.com/mvdan/sh/releases/download/v3.11.0/shfmt_v3.11.0_windows_amd64.exe
sha256 = d11a0880588304496065110cb67ce2375cfcd5433e76dec505ce1fa21adf47cc