You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-17Lines changed: 20 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,24 @@ Repository is created for the support of any languages that you need for spell c
6
6
7
7
## Features
8
8
9
-
- Customizable configuration of spell checking using [Aspell](http://aspell.net) and [Hunspell](http://hunspell.github.io)due to [docs](https://facelessuser.github.io/pyspelling/configuration/)
10
-
- Support any formats of file to check
9
+
- Customizable configuration of spell checking using [Aspell](http://aspell.net) and [Hunspell](http://hunspell.github.io) due to [docs](https://facelessuser.github.io/pyspelling/configuration/)
10
+
- Support for any formats of file to check
11
11
- Supports any languages from the list for [Aspell](https://ftp.gnu.org/gnu/aspell/dict/0index.html) and any languages for [Hunspell](https://en.wikipedia.org/wiki/Hunspell).
12
12
13
13
## Configuration
14
14
15
-
1. First you have to add a configuration for the spelling checker
16
-
2. Create a file named: `.spellcheck.yml` or `.spellcheck.yaml`, do note if both files exist the prior will have precedence. Do note the recommendation is _hidden_ files since these configuration files are not first rate citizens of your repository
17
-
3. Paste the contents of the outlined example, which is a configuration for Markdown, useful for your README file
15
+
1. First, you have to add a configuration for the spelling checker.
16
+
2. Create a file named: `.spellcheck.yml` or `.spellcheck.yaml`. Note that if both files exist, `.spellcheck.yml`will take precedence. Hidden files are recommended for configuration since these files are not primary content of your repository.
17
+
3. Paste the contents of the outlined example, which is a configuration for Markdown, useful for your README file.
18
18
19
-
Do note that this action requires the contents of the repository, so it is recommended used with [the Checkout action][actioncheckout].
19
+
Do note that this action requires the contents of the repository, so it is recommended to use it with [the Checkout action][actioncheckout].
20
20
21
-
You have to define this part in your workflow, since it not a part of the action itself.
21
+
You have to define this part in your workflow, as it is not a part of the action itself.
22
22
23
-
Example:
23
+
### Example Workflow
24
24
25
25
```yaml
26
-
# This is workflow for spell checking using PySpelling lib (https://pypi.org/project/pyspelling/)
26
+
# This is a workflow for spell checking using PySpelling lib (https://pypi.org/project/pyspelling/)
configFile: '.my-custom-config.yml'# Optional field
49
51
```
50
52
51
-
Note the step: `- uses: actions/checkout@master`
52
-
This file must live in a the `.github/workflows/` directory.
53
-
For example, it could be `.github/workflows/spellcheck.yml`
53
+
### Optional Field
54
54
55
-
## Checking For Bad Spelling
55
+
The action supports an optional `configFile` input parameter to specify a custom configuration file name. By default, it looks for `.spellcheck.yml` or `.spellcheck.yaml` files. You can override this default by providing a `configFile` input in the workflow as shown above.
56
56
57
-
The GitHub Action helps you make sure _most_ spelling errors do not make it into your repository. You can however check your spelling prior to committing and pushing to your repository.
57
+
### Checking For Bad Spelling
58
+
59
+
The GitHub Action helps you make sure _most_ spelling errors do not make it into your repository. You can, however, check your spelling prior to committing and pushing to your repository.
58
60
59
61
This simply uses the contents of our spelling toolchain:
60
62
@@ -67,14 +69,14 @@ Misspelled words:
67
69
!!!Spelling check failed!!!
68
70
```
69
71
70
-
And at some point we get:
72
+
And at some point, you get:
71
73
72
74
```bash
73
75
$ pyspelling -c .spellcheck.yml
74
76
Spelling check passed :)
75
77
```
76
78
77
-
Now we should be good to go.
79
+
Now you should be good to go.
78
80
79
81
Do note you could also use the `entrypoint.sh`, which is the script used in the Docker image.
80
82
@@ -97,4 +99,5 @@ The original author of this GitHub Action is Igor Korovchenko (@igsekor)
97
99
98
100
## Copyright and License
99
101
100
-
This repository is licensed under the MIT license.
102
+
This repository is licensed under the MIT license.
0 commit comments