Skip to content

Commit

Permalink
Bumped PySpelling to 2.10, introducing support for parallel jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbn committed Jan 15, 2024
1 parent fe9c0e0 commit 36884e2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,40 @@ matrix:

Change the configuration to suit your repository and needs, please see the `examples/` directory for more example configurations.

## Specifying Number of Jobs for Parallel Processing

This action supports parallel processing of the configured tasks, this is done using the `jobs` parameter. Introduced in version 4.10 of **PySpelling**.

The default value is `1`, which means that the action will run in a single job.

```yaml
jobs: 4
```

Full example:

```yaml
jobs: 4
matrix:
- name: Markdown
aspell:
lang: en
dictionary:
wordlists:
- .wordlist.txt
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
- pyspelling.filters.html:
comments: false
ignores:
- code
- pre
sources:
- '**/*.md'
default_encoding: utf-8
```

## Specifying Language

This action currently only support `aspell`, please see the section on Language Support below.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ html5lib==1.1
lxml==4.9.3
Markdown==3.4.4
pymdown-extensions==10.4
pyspelling==2.9
pyspelling==2.10
PyYAML==6.0.1
six==1.16.0
soupsieve==2.5
Expand Down

0 comments on commit 36884e2

Please sign in to comment.