From efa4cae2b72d1780449f3e3f01c7b8fdde987f5c Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Mon, 29 Aug 2022 12:12:40 +0100 Subject: [PATCH 1/2] Fix a typo --- shtab/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shtab/__init__.py b/shtab/__init__.py index 87ca026..9c011ce 100644 --- a/shtab/__init__.py +++ b/shtab/__init__.py @@ -303,7 +303,7 @@ def complete_bash(parser, root_prefix=None, preamble="", choice_functions=None): # - https://opensource.com/article/18/3/creating-bash-completion-script # - https://stackoverflow.com/questions/12933362 return Template("""\ -# AUTOMATCALLY GENERATED by `shtab` +# AUTOMATICALLY GENERATED by `shtab` ${subparsers} From f94ec17bd208d7545745d3f1f32b7955a4d85d45 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Mon, 29 Aug 2022 12:14:27 +0100 Subject: [PATCH 2/2] Add a codespell action --- .github/workflows/codespell.yml | 15 +++++++++++++++ 1 file changed, 15 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..7e17d19 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,15 @@ +# GitHub Action to automate the identification of common misspellings in text files. +# https://github.com/codespell-project/actions-codespell +# https://github.com/codespell-project/codespell +name: codespell +on: [push, pull_request] +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: codespell-project/actions-codespell@master + with: + check_filenames: true + check_hidden: true