Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cspell check via pre-commit #21

Merged
merged 1 commit into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
antsibull
antsichaut
certifi
chardet
clib
configargparse
envlist
fqcn
gumprich
haque
maksudul
notesdir
rndmh3ro
ruamel
saadmk11
testenv
timeperiod
usergroups
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion antsichaut/antsichaut.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -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