From 96c502b641f08d1b590c66f238702e5f47741d76 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:04:35 +0000 Subject: [PATCH 1/8] try out new spellcheck --- .github/workflows/spellcheck.yml | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 477b8c4b..ab17c128 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -2,30 +2,13 @@ name: Spellcheck on: pull_request: {branches: ['main']} jobs: - Spelling: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on runs-on: ubuntu-latest - container: {image: "rocker/tidyverse:4.3.1"} + # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: Checkout repo - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Install packages - run: | - if (!require("roxygen2")) install.packages("roxygen2") - if (!require("spelling")) install.packages("spelling") - if (!require("testthat")) install.packages("testthat") - shell: Rscript {0} - - - name: Check spelling - run: | - testthat::test_that(desc = "Check spelling", - code = { - typos <- spelling::spell_check_files(list.files(pattern = ".*.qmd$", recursive = TRUE), ignore = readr::read_lines("inst/WORDLIST.txt")) - print(typos) - testthat::expect_equal( - object = typos, - expected = spelling::spell_check_files(path = "inst/WORDLIST.txt", ignore = readr::read_lines("inst/WORDLIST.txt")) - ) - } - ) - shell: Rscript {0} + - name: GitHub Spellcheck + uses: igsekor/pyspelling-any@v1.0.4 From 677bcc23413543c5d4dfbc56a15fc00a31dcb74a Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:11:31 +0000 Subject: [PATCH 2/8] add yml for spellcheck --- .spellcheck.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .spellcheck.yml diff --git a/.spellcheck.yml b/.spellcheck.yml new file mode 100644 index 00000000..c0ff9ff6 --- /dev/null +++ b/.spellcheck.yml @@ -0,0 +1,18 @@ +matrix: +- name: Markdown + sources: + - '**/*.qmd' + default_encoding: utf-8 + aspell: + lang: en + dictionary: + wordlists: + - inst/WORDLIST.txt + encoding: utf-8 + pipeline: + - pyspelling.filters.markdown: + - pyspelling.filters.html: + comments: false + ignores: + - code + - pre From 88348cff1f5669b44699565067a6dd0a13b3f7a2 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:35:33 +0000 Subject: [PATCH 3/8] update wordlist --- inst/WORDLIST.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/WORDLIST.txt b/inst/WORDLIST.txt index 87ea7ab3..ba01bd04 100644 --- a/inst/WORDLIST.txt +++ b/inst/WORDLIST.txt @@ -848,3 +848,4 @@ curation requestor pageId viewpage +dataset From 2468c35ba10a03cb8f1ef1d0ae1d1db1a87b1b5b Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:37:01 +0000 Subject: [PATCH 4/8] update wordlist --- inst/WORDLIST.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inst/WORDLIST.txt b/inst/WORDLIST.txt index ba01bd04..84130288 100644 --- a/inst/WORDLIST.txt +++ b/inst/WORDLIST.txt @@ -849,3 +849,5 @@ requestor pageId viewpage dataset +datasets +txt From 9810c8ec2164a89fab8aa20eecd9d03fcb17fb81 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:41:08 +0000 Subject: [PATCH 5/8] update wordlist --- inst/WORDLIST.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/inst/WORDLIST.txt b/inst/WORDLIST.txt index 84130288..937dc670 100644 --- a/inst/WORDLIST.txt +++ b/inst/WORDLIST.txt @@ -851,3 +851,25 @@ viewpage dataset datasets txt +Ży +pdf +webpage +hoc +POSIX +covariate +Covariates +covariates +Covariates +PHUSE’s +NAs +dataframe +subsetted +subsetting +rbind +pdf +backend +APIs +pdf +sqrt +url +rbind From c40d14b08b540eee6e12e305ee691cceeea4d6a7 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:41:08 +0000 Subject: [PATCH 6/8] update wordlist --- inst/WORDLIST.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/inst/WORDLIST.txt b/inst/WORDLIST.txt index 84130288..fe1e9f55 100644 --- a/inst/WORDLIST.txt +++ b/inst/WORDLIST.txt @@ -851,3 +851,30 @@ viewpage dataset datasets txt +Ży +pdf +webpage +hoc +POSIX +covariate +Covariates +covariates +Covariates +PHUSE’s +NAs +dataframe +subsetted +subsetting +rbind +pdf +backend +APIs +pdf +sqrt +url +rbind +Taşl +çukur +Ży +unix +PHUSE’s From bd2e6ba72ee65ed11d9b623151d1f5626ee43124 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:47:36 +0000 Subject: [PATCH 7/8] =?UTF-8?q?try=20out=20=C5=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inst/WORDLIST.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/WORDLIST.txt b/inst/WORDLIST.txt index fe1e9f55..81b5fcad 100644 --- a/inst/WORDLIST.txt +++ b/inst/WORDLIST.txt @@ -876,5 +876,6 @@ rbind Taşl çukur Ży +Ży unix PHUSE’s From 8868378d943f7cd8adb2229091d23c0998cd6b78 Mon Sep 17 00:00:00 2001 From: Stefan Pascal Thoma Date: Thu, 8 Aug 2024 08:59:58 +0000 Subject: [PATCH 8/8] added names to wordlist --- inst/WORDLIST.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inst/WORDLIST.txt b/inst/WORDLIST.txt index 81b5fcad..73b662db 100644 --- a/inst/WORDLIST.txt +++ b/inst/WORDLIST.txt @@ -879,3 +879,5 @@ Taşl Ży unix PHUSE’s +Żyła +Taşlıçukur