Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions template/.pre-commit-config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ repos:
hooks:
- id: shellcheck
args: ["--severity=info"]
# Temporarily needed until all getting_started.sh.j2 scripts are made non-executable.
# As long as they are, prek will treat them as shell scripts and so this hook will fail.
# pre-commit behaves differently apparently and doesn't pass .j2 files to this hook.
exclude: \.j2$

# WARNING (@NickLarsenNZ): Nix users need to install ruff first.
# If you do not, you will need to delete the cached ruff binary shown in the
Expand Down
3 changes: 3 additions & 0 deletions template/scripts/docs_templating.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ do
jinja2 "$file" "$templating_vars_file" -o "$new_file_name"
done

# Ensure this script is executable
chmod +x docs/modules/opensearch/examples/getting_started/getting_started.sh

echo "done"