From 33eb8a876f237a67f79016eb1257a00ef25ddeed Mon Sep 17 00:00:00 2001 From: kellervater Date: Thu, 10 Apr 2025 23:09:38 +0200 Subject: [PATCH] ci: linting --- .pre-commit-config.yaml | 5 ----- .tool-versions | 1 + Makefile | 2 +- install-asdf.sh | 3 +++ 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4449591..fa8f85a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,11 +13,6 @@ repos: hooks: - id: shell-lint args: [--external-sources] -- repo: https://github.com/adrienverge/yamllint - rev: v1.37.0 - hooks: - - id: yamllint - args: ['-c', '.lint/yamllint/.yamllint'] - repo: https://github.com/rhysd/actionlint rev: v1.7.7 hooks: diff --git a/.tool-versions b/.tool-versions index d64c207..af97a9e 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1,2 @@ pre-commit 4.2.0 +shellcheck 0.10.0 diff --git a/Makefile b/Makefile index c7199dd..ed45acf 100644 --- a/Makefile +++ b/Makefile @@ -21,4 +21,4 @@ asdf-plugins: ## Install asdf plugins asdf-install: asdf-plugins ## Install tools with asdf # # Install tools via asdf. - @asdf install \ No newline at end of file + @asdf install diff --git a/install-asdf.sh b/install-asdf.sh index efc1e73..a3ffec0 100755 --- a/install-asdf.sh +++ b/install-asdf.sh @@ -42,8 +42,11 @@ tar -xzf /tmp/asdf.tar.gz -C "$INSTALL_DIR" echo "🧹 Cleaning up..." rm /tmp/asdf.tar.gz +# shellcheck disable=SC2016 add_line_to_file_if_not_exists "$HOME/.bashrc" 'export PATH="$HOME/.asdf:$PATH"' +# shellcheck disable=SC2016 add_line_to_file_if_not_exists "$HOME/.bash_profile" 'export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"' +# shellcheck disable=SC2016 add_line_to_file_if_not_exists "$HOME/.bashrc" '. <(asdf completion bash)'