ci: linting

This commit is contained in:
kellervater
2025-04-10 23:09:38 +02:00
parent eb327aab0e
commit 33eb8a876f
4 changed files with 5 additions and 6 deletions

View File

@@ -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:

View File

@@ -1 +1,2 @@
pre-commit 4.2.0
shellcheck 0.10.0

View File

@@ -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)'