chore: Added pre-commit hooks
This commit is contained in:
28
.pre-commit-config.yaml
Normal file
28
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
default_install_hook_types: [pre-commit, commit-msg]
|
||||
exclude: gotk-.*.yaml
|
||||
repos:
|
||||
- repo: builtin
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
args:
|
||||
- --allow-multiple-documents
|
||||
- id: check-added-large-files
|
||||
- id: check-merge-conflict
|
||||
- id: check-executables-have-shebangs
|
||||
|
||||
- repo: https://github.com/crate-ci/typos
|
||||
rev: v1.40.0
|
||||
hooks:
|
||||
- id: typos
|
||||
|
||||
- repo: https://github.com/sirwart/ripsecrets
|
||||
rev: v0.1.11
|
||||
hooks:
|
||||
- id: ripsecrets-system
|
||||
|
||||
- repo: https://github.com/crate-ci/committed
|
||||
rev: v1.1.8
|
||||
hooks:
|
||||
- id: committed
|
||||
6
.typos.toml
Normal file
6
.typos.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[default]
|
||||
extend-ignore-re = [
|
||||
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
|
||||
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
|
||||
"(#|//)\\s*spellchecker:ignore-next-line\\n.*",
|
||||
]
|
||||
@@ -58,6 +58,7 @@ if [ "${vip}" = "null" ]; then
|
||||
fi
|
||||
|
||||
echo -n "Checking connection to ${bootstrap_ip}... "
|
||||
# spellchecker:ignore-next-line
|
||||
if nmap -Pn ${bootstrap_ip} -p 50000 | grep -q 'open'; then
|
||||
echo "[Success]"
|
||||
else
|
||||
@@ -67,6 +68,7 @@ fi
|
||||
|
||||
count=0
|
||||
max_retries=20
|
||||
# spellchecker:ignore-next-line
|
||||
while ! nmap -Pn ${vip} -p 50000 | grep -q 'open' && [ ${count} -lt ${max_retries} ]; do
|
||||
if [ $count -eq 0 ]; then
|
||||
echo -n "Bootstrapping Kubernetes"
|
||||
|
||||
2
committed.toml
Normal file
2
committed.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
style = "conventional"
|
||||
ignore_author_re = "Flux"
|
||||
Reference in New Issue
Block a user