Skip to content

Could I please have some help with pyspelling in a CI pipeline? #172

@Alex-Bujorianu

Description

@Alex-Bujorianu

Hi there,

I am using pyspelling in Github Actions with the following .spellcheck.yaml file:

---
spellchecker: aspell
matrix:
  - name: markdown
    aspell:
      lang: en
    sources:
      - "Chapters/*.md"
    pipeline:
      - pyspelling.filters.markdown
    dictionary:
      wordlists:
        - wordlist.txt
      output: wordlist.dic
      encoding: utf-8
    default_encoding: utf-8
    expect_match: true

In the CI pipeline I see that it is running this command: Command: ['aspell', 'list', '--encoding', 'utf-8', '--add-extra-dicts', '/github/workspace/wordlist.dic', '--lang', 'en', '--mode', 'none']. The custom dictionary seems to have some effect, but it is still showing some of the words as mis-spelt, especially those with apostrophes. The dictionary looks something like this (truncated for brevity):

Battleborn
Carthago
Dacian
Dwarvish
Fangtooth

What happens if a word is duplicated inside of the dictionary? I think it might be related to that.

Also is there any way to get it to not print the contents of each file that it is checking?

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: triageIssue needs triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions