From 4d69436d71104b402de0c8719f7f508d0e2afb06 Mon Sep 17 00:00:00 2001 From: Matthias Reso <13337103+mreso@users.noreply.github.com> Date: Fri, 17 May 2024 17:50:11 +0000 Subject: [PATCH] Move scripts folder --- {scripts => .github/scripts}/check_copyright_header.py | 0 .../scripts}/markdown_link_check_config.json | 0 {scripts => .github/scripts}/spellcheck.sh | 2 +- .../scripts}/spellcheck_conf/spellcheck.yaml | 4 ++-- {scripts => .github/scripts}/spellcheck_conf/wordlist.txt | 0 .github/workflows/spellcheck.yml | 6 +++--- 6 files changed, 6 insertions(+), 6 deletions(-) rename {scripts => .github/scripts}/check_copyright_header.py (100%) rename {scripts => .github/scripts}/markdown_link_check_config.json (100%) rename {scripts => .github/scripts}/spellcheck.sh (84%) rename {scripts => .github/scripts}/spellcheck_conf/spellcheck.yaml (82%) rename {scripts => .github/scripts}/spellcheck_conf/wordlist.txt (100%) diff --git a/scripts/check_copyright_header.py b/.github/scripts/check_copyright_header.py similarity index 100% rename from scripts/check_copyright_header.py rename to .github/scripts/check_copyright_header.py diff --git a/scripts/markdown_link_check_config.json b/.github/scripts/markdown_link_check_config.json similarity index 100% rename from scripts/markdown_link_check_config.json rename to .github/scripts/markdown_link_check_config.json diff --git a/scripts/spellcheck.sh b/.github/scripts/spellcheck.sh similarity index 84% rename from scripts/spellcheck.sh rename to .github/scripts/spellcheck.sh index 9cd9936e..4d3f1f44 100755 --- a/scripts/spellcheck.sh +++ b/.github/scripts/spellcheck.sh @@ -19,5 +19,5 @@ done if [ ! "$sources_arg" ]; then echo "No files to spellcheck" else - pyspelling -c scripts/spellcheck_conf/spellcheck.yaml --name Markdown $sources_arg + pyspelling -c .github/scripts/spellcheck_conf/spellcheck.yaml --name Markdown $sources_arg fi diff --git a/scripts/spellcheck_conf/spellcheck.yaml b/.github/scripts/spellcheck_conf/spellcheck.yaml similarity index 82% rename from scripts/spellcheck_conf/spellcheck.yaml rename to .github/scripts/spellcheck_conf/spellcheck.yaml index 3a9a2df8..026eb4c2 100644 --- a/scripts/spellcheck_conf/spellcheck.yaml +++ b/.github/scripts/spellcheck_conf/spellcheck.yaml @@ -5,8 +5,8 @@ matrix: d: en_US dictionary: wordlists: - - scripts/spellcheck_conf/wordlist.txt - output: scripts/spellcheck_conf/wordlist.dic + - .github/scripts/spellcheck_conf/wordlist.txt + output: .github/scripts/spellcheck_conf/wordlist.dic encoding: utf-8 pipeline: - pyspelling.filters.context: diff --git a/scripts/spellcheck_conf/wordlist.txt b/.github/scripts/spellcheck_conf/wordlist.txt similarity index 100% rename from scripts/spellcheck_conf/wordlist.txt rename to .github/scripts/spellcheck_conf/wordlist.txt diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index a08052bc..ed8cc27f 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -20,7 +20,7 @@ jobs: uses: gaurav-nelson/github-action-markdown-link-check@1.0.13 with: use-verbose-mode: 'yes' - config-file: "scripts/markdown_link_check_config.json" + config-file: ".github/scripts/markdown_link_check_config.json" - name: Get changed files id: changed-files @@ -56,11 +56,11 @@ jobs: if [ ! "$sources" ]; then echo "No files to spellcheck" else - pyspelling -c $GITHUB_WORKSPACE/scripts/spellcheck_conf/spellcheck.yaml --name Markdown $sources + pyspelling -c $GITHUB_WORKSPACE/.github/scripts/spellcheck_conf/spellcheck.yaml --name Markdown $sources fi - name: In the case of misspellings if: ${{ failure() }} run: | echo "Please fix the misspellings. If you are sure about some of them, " - echo "so append those to scripts/spellcheck_conf/wordlist.txt" + echo "so append those to .github/scripts/spellcheck_conf/wordlist.txt" -- GitLab