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 9cd9936eab55940f689cda0bf0ddfc958c48c91d..4d3f1f44c26351f283148c13d440cef239327702 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 3a9a2df84e3d068badd43752c0fd74164c8150dc..026eb4c2b31a15e5e55cbad939def310e459f231 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 a08052bcdba7296d447caf5f11ebfbeecd1713f5..ed8cc27f9b462a4ebf54f3c2a8f16242defded9b 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"