1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

pre-commit: add go mod tidy

This commit is contained in:
bbedward
2026-01-26 16:46:38 -05:00
parent 17eaa761f8
commit 705d5b04dd
2 changed files with 13 additions and 0 deletions

View File

@@ -20,5 +20,10 @@ jobs:
- name: Add a flatpak that mutagen could support
run: sudo flatpak install -y org.freedesktop.Platform/x86_64/24.08 app.zen_browser.zen
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: run pre-commit hooks
uses: j178/prek-action@v1

View File

@@ -10,3 +10,11 @@ repos:
hooks:
- id: shellcheck
args: [-e, SC2164, -e, SC2001, -e, SC2012, -e, SC2317]
- repo: local
hooks:
- id: go-mod-tidy
name: go mod tidy
entry: go mod tidy
language: system
files: (go\.mod|go\.sum|\.go)$
pass_filenames: false