Skip to content

Commit

Permalink
initial scripts woring
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Baker authored and Marcus Baker committed Sep 15, 2024
1 parent d2aba0a commit a408519
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .pre-commit-config.yaml
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
1 change: 1 addition & 0 deletions .tool-versions
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
5 changes: 5 additions & 0 deletions Makefile
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
1 change: 1 addition & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*

0 comments on commit a408519

Please sign in to comment.