diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 41269a8d3a0..8b0e268ebfb 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -36,7 +36,7 @@ jobs: - name: Run pre-commit hooks env: # SKIP is used by pre-commit to not execute certain hooks - SKIP: php-cs,php-cbf,trailing-whitespace,end-of-file-fixer + SKIP: no-commit-to-branch,php-cs,php-cbf,trailing-whitespace,end-of-file-fixer run: | set -o pipefail pre-commit gc diff --git a/dev/tools/codespell/addCodespellIgnores.sh b/dev/tools/codespell/addCodespellIgnores.sh index 0ed32973824..2aaa9eedb68 100755 --- a/dev/tools/codespell/addCodespellIgnores.sh +++ b/dev/tools/codespell/addCodespellIgnores.sh @@ -40,7 +40,7 @@ fi # - Run codespell; # - For each line, create a grep command to find the lines; # - Execute that command by evaluation -codespell . | perl -p -e 's@^(.*?):\d+:\s(\S+)\s.*@grep -P '"'"'\\b$2\\b'"'"' "$1" >> '"${codespell_ignore_file}"'@;' | \ +codespell . | sed -n -E 's@^([^:]+):[[:digit:]]+:[[:space:]](\S+)[[:space:]].*@grep -P '\''\\b\2\\b'\'' "\1" >> '"${codespell_ignore_file}"'@p' | \ while read -r line ; do eval "$line" ; done # Finally, sort and remove duplicates to make merges easier.