diff --git a/.config/dictionary.txt b/.config/dictionary.txt new file mode 100644 index 0000000..b80acf4 --- /dev/null +++ b/.config/dictionary.txt @@ -0,0 +1,18 @@ +antsibull +antsichaut +certifi +chardet +clib +configargparse +envlist +fqcn +gumprich +haque +maksudul +notesdir +rndmh3ro +ruamel +saadmk11 +testenv +timeperiod +usergroups diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33717b6..4549e9f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,11 +46,11 @@ repos: args: - "--exit-non-zero-on-fix" - # - repo: https://github.com/streetsidesoftware/cspell-cli - # rev: v6.31.0 - # hooks: - # - id: cspell - # name: Spell check with cspell + - repo: https://github.com/streetsidesoftware/cspell-cli + rev: v6.31.0 + hooks: + - id: cspell + name: Spell check with cspell # - repo: https://github.com/terrencepreilly/darglint.git # rev: v1.8.1 diff --git a/README.md b/README.md index 79ede61..87ca05a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ group_config = [ This means for example that PR's with the label `major` get categorized into the `major_changes` section of the changelog. -PR's that hace a `skip_changelog` do not get added to the changelog at all. +PR's that have a `skip_changelog` do not get added to the changelog at all. PR's that do not have one of the above labels get categorized into the `trivial` section. @@ -79,7 +79,7 @@ Check this [example](https://github.com/T-Systems-MMS/ansible-collection-icinga- This script was initially forked from https://github.com/saadmk11/changelog-ci/ and modified by @rndmh3ro. Thank you, @saadmk11! -From May 2021 through May 2023, this project was maintained by @rndmh3ro and then graciously transferred to the ansible community orgnaization. Thank you @rndmh3ro! +From May 2021 through May 2023, this project was maintained by @rndmh3ro and then graciously transferred to the ansible community organization. Thank you @rndmh3ro! ## License diff --git a/antsichaut/antsichaut.py b/antsichaut/antsichaut.py index 3d83e5d..e084dba 100755 --- a/antsichaut/antsichaut.py +++ b/antsichaut/antsichaut.py @@ -171,7 +171,7 @@ def get_changes_after_last_release(self): def remove_outdated(self, changes, data, new_version): """Remove outdate changes from changelog. - Walk through the exisiting changelog looking for each PR. + Walk through the existing changelog looking for each PR. If the PR is found in a given line, but the title has changed, remove the line from the changelog. Rather than exit early, continue to walk through the changelog to ensure that all diff --git a/cspell.config.yaml b/cspell.config.yaml new file mode 100644 index 0000000..a5f5bea --- /dev/null +++ b/cspell.config.yaml @@ -0,0 +1,20 @@ +dictionaryDefinitions: + - name: words + path: .config/dictionary.txt + addWords: true +dictionaries: + - bash + - networking-terms + - python + - words + - "!aws" + - "!backwards-compatibility" + - "!cryptocurrencies" + - "!cpp" +ignorePaths: + # All dot files in the root + - \.* + # This file + - cspell.config.yaml + # The shared file for tool configuration + - pyproject.toml