Skip to content

Eideticom/spellcheck-github-actions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spellcheck-github-actions

Introduction

A Github Action that spell checks a wide range of human readable files including Python, HTML, Markdown and plain text. This action uses PySpelling to check files in the repository that it is applied too using a configuration file and dictionary provided by the repository owner.

Usage

To incorporate this action into your workflow carry out the following steps:

  1. Create a .spellcheck.yaml configuration file in the top level of your repository. See this link for configuration options. If you do not create this file the action will use its default. That default may well not work for you.

  2. Create a .wordlist.txt file in the top level of your repository with a dictionary of acceptable words and abbreviations that are not covered in the default aspell dictionary. If you have aspell installed you can run it against the target files in your configuration to get a list of words here.

  3. Add the github action to either a new workflow file or an existing one.

As an example, here is a workflow file that should work (though please check here for the latest release version):

name: spellcheck

on:
  push:

jobs:
  spellcheck:
    name: runner / spellcheck
    runs-on: ubuntu-latest
    steps:
    - name: Check out code.
      uses: actions/checkout@v2
    - name: Run PySpelling as a GitHub action
      uses: sbates130272/[email protected]

Examples

Several examples of spellcheck and wordlist files are included in the examples folder. Please feel free to use these by renaming them to .spellcheck.yaml and .wordlist.txt and placing them in the top level of your repository. Pull requests for new examples are welcome.

Packages

No packages published

Languages

  • Dockerfile 58.2%
  • Shell 31.0%
  • HCL 10.8%