From 27339dddd95ca220e86b448a64c42a22f806a7cf Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 6 Apr 2023 10:29:50 -0400 Subject: [PATCH 1/5] Add github action to codespell master on push and PRs --- .github/workflows/codespell.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..5768d7c --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,19 @@ +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Codespell + uses: codespell-project/actions-codespell@v1 From 0002995359b4116c942abecd874ea367d9cc6c86 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 6 Apr 2023 10:29:50 -0400 Subject: [PATCH 2/5] Add rudimentary .codespellrc --- .codespellrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..5aa4b5e --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +skip = .git,*.pdf,*.svg +# ignore-words-list = From ac8491b39bd229846c274337739a96cc1342206f Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 6 Apr 2023 10:30:18 -0400 Subject: [PATCH 3/5] [DATALAD RUNCMD] one ambigous typo fix === Do not change lines below === { "chain": [], "cmd": "git-sedi achive achieve", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 110c359..6bcf811 100644 --- a/README.md +++ b/README.md @@ -990,7 +990,7 @@ user@localhost:~/bats-file$ vagrant up The line above spins up a brand new virtualbox image and provisions with prerequisites. -However, as the tests require not to be on a network share due to running commands eg: `mknod`, the files are shared into the VM by `rsync` module. Rsync in vagrant only runs initialy and stops. During the active development, you regularly change files and might want to see the impact. To achive that, you have to use auto rsync. +However, as the tests require not to be on a network share due to running commands eg: `mknod`, the files are shared into the VM by `rsync` module. Rsync in vagrant only runs initialy and stops. During the active development, you regularly change files and might want to see the impact. To achieve that, you have to use auto rsync. > `auto-rsync` is a long running command. It means that it has to run on terminal screen as long as the VM is up and running. So, you have to keep this in a dedicated terminal screen. From 91eda15f8e6cd979a35869360a725693c454319d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 6 Apr 2023 10:30:22 -0400 Subject: [PATCH 4/5] [DATALAD RUNCMD] run codespell throughout === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6bcf811..8e0d1f2 100644 --- a/README.md +++ b/README.md @@ -856,7 +856,7 @@ error message on the standard error. ``` -- ERROR: temp_make -- -mktemp: failed to create directory via template ‘/etc/samle.bats-1-XXXXXXXXXX’: Permission denied +mktemp: failed to create directory via template ‘/etc/sample.bats-1-XXXXXXXXXX’: Permission denied -- ``` @@ -897,7 +897,7 @@ error message on the standard error. ``` -- ERROR: temp_del -- -rm: cannot remove '/etc/samle.bats-1-04RUVmBP7x': No such file or directory +rm: cannot remove '/etc/sample.bats-1-04RUVmBP7x': No such file or directory -- ``` @@ -980,7 +980,7 @@ path : /path/to/non-existent-file ## **Development** -No one would want to develop piece of bash dependant libraries on their laptops due to single mistake (globbing for instance) can cause a disaster. In order to prevent this there is a Vagrantfile that you can use. +No one would want to develop piece of bash dependent libraries on their laptops due to single mistake (globbing for instance) can cause a disaster. In order to prevent this there is a Vagrantfile that you can use. In order to start development environment, you have to take two steps; @@ -990,7 +990,7 @@ user@localhost:~/bats-file$ vagrant up The line above spins up a brand new virtualbox image and provisions with prerequisites. -However, as the tests require not to be on a network share due to running commands eg: `mknod`, the files are shared into the VM by `rsync` module. Rsync in vagrant only runs initialy and stops. During the active development, you regularly change files and might want to see the impact. To achieve that, you have to use auto rsync. +However, as the tests require not to be on a network share due to running commands eg: `mknod`, the files are shared into the VM by `rsync` module. Rsync in vagrant only runs initially and stops. During the active development, you regularly change files and might want to see the impact. To achieve that, you have to use auto rsync. > `auto-rsync` is a long running command. It means that it has to run on terminal screen as long as the VM is up and running. So, you have to keep this in a dedicated terminal screen. From 24f40f374822b4d9f9bc34ccb24d3683367390c8 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Sun, 15 Jun 2025 23:50:10 +0200 Subject: [PATCH 5/5] Update dependencies, reduce permissions --- .github/workflows/codespell.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 5768d7c..b4d947b 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -1,5 +1,6 @@ ---- name: Codespell +permissions: {} + on: push: @@ -14,6 +15,6 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Codespell - uses: codespell-project/actions-codespell@v1 + uses: codespell-project/actions-codespell@v2