Skip to content

Commit

Permalink
Merge pull request #27 from sscheib/fix-pyspelling
Browse files Browse the repository at this point in the history
chore(pyspelling): Fixing pyspelling configuration
  • Loading branch information
sscheib authored Apr 6, 2024
2 parents c09c67b + 56cbbab commit 9159fc1
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions .github/spellcheck/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,13 @@ matrix:
# # end nospell
#
- open: '(?m)(\s{0,}?)#\s+?begin\s+?nospell$'
content: '[\S\s]+?'
content: '[\S\s]+'
close: '\1#\s+?end\s+?nospell$'

- pyspelling.filters.context:
context_visible_first: false
delimiters:
# take into account '- name' lines
# fully qualified collection name
#
# example:
#
# - name: 'My task'
#
- open: '(?s)^(?:-\s+?name):\s[^>\|]'
content: '.+?'
close: '$'

# take into account YAML multiline names
# take into account YAML multiline name lines
#
# examples:
#
Expand All @@ -114,13 +103,32 @@ matrix:
# Folded block style without newline trimming
#
# - name: |-
# Literal block style with newline trimming
# Literal block
# style with
# newline
# trimming
#
# - name: |
# Literal block style without newline trimming
# Literal block style without
# newline trimming
#
# this matching works until the first fully qualified collection name, e.g.:
# - ansible.builtin.copy
# - satellite.redhat.locations
#
- open: '(?m)^(?:-\s+?name):\s+?(?:>|\|)(?:-)?(\n)(\s+)[^\n].+\2'
content: '[^\n].+(\1\2[^\n]+){0,}'
# or if block: or when: is encountered on the next line
- open: '(?m)^\s+?-\s+?name:\s+?(?:>|\|)?-?'
content: '\n\s*([\s\S]+?)(?=\s*(?:[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)+\.|block:|when:))'
close: '$'

# take into account '- name' lines
#
# example:
#
# - name: 'My task'
#
- open: '(?s)^(?:-\s+?name):\s[^>\|]'
content: '.+?'
close: '$'

# take into account any comments
Expand Down

0 comments on commit 9159fc1

Please sign in to comment.