-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcus Baker
authored and
Marcus Baker
committed
Sep 15, 2024
1 parent
d2aba0a
commit a408519
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
fail_fast: true | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: golangci-lint | ||
name: Run golangci-lint | ||
entry: golangci-lint run --allow-parallel-runners --new-from-rev=HEAD~ --fix | ||
language: system | ||
files: .*\.go$ | ||
pass_filenames: false | ||
always_run: false | ||
- id: gofumpt | ||
name: Run gofumpt | ||
entry: gofumpt -l -w | ||
language: system | ||
files: .*\.go$ | ||
- id: gotidy | ||
name: Run go tidy | ||
entry: go mod tidy | ||
language: system | ||
files: .*\.go$ | ||
pass_filenames: false | ||
- id: gotest | ||
name: Run go test | ||
entry: go test ./... -failfast | ||
language: system | ||
files: .*\.go$ | ||
pass_filenames: false | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-symlinks | ||
- id: check-vcs-permalinks | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: detect-aws-credentials | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: forbid-new-submodules | ||
- id: mixed-line-ending | ||
- id: name-tests-test | ||
- id: no-commit-to-branch | ||
- id: pretty-format-json | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
shellcheck 0.9.0 | ||
shfmt 3.6.0 | ||
pre-commit 3.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test: | ||
bin/list-all | ||
ASDF_DOWNLOAD_PATH=./data/download \ | ||
ASDF_INSTALL_VERSION=$$(bin/list-all | tr ' ' "\n" | tail -1) \ | ||
bin/download |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |