mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
feat: Improve performance during pre-commit --all (-a) run (#327)
This commit is contained in:
parent
a80d3835d4
commit
7e7c91643e
11 changed files with 106 additions and 7 deletions
|
|
@ -1,6 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
# globals variables
|
||||
# hook ID, see `- id` for details in .pre-commit-hooks.yaml file
|
||||
# shellcheck disable=SC2034 # Unused var.
|
||||
readonly HOOK_ID='terraform_docs'
|
||||
# shellcheck disable=SC2155 # No way to assign to readonly variable in separate lines
|
||||
readonly SCRIPT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
|
||||
# shellcheck source=_common.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue