-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# spellcheck-github-actions | ||
Spell check action | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rojopolis
via email
Author
Owner
|
||
A Github Action that spell checks Python, Markdown, and Text files. | ||
|
||
This action uses [PySpelling](https://facelessuser.github.io/pyspelling/) to | ||
check source files in the project. This release doesn't allow any | ||
connfiguration. | ||
|
||
TODO: Add support for custom dictionary and other settings. |
1 comment
on commit dbe1354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you use this in a CI context do you generally include a config file in the repo to be checked (similar to including a .pylintrc)?
Yup. The pyspelling project actually spellchecks itself, but here is a separate project that employs it:
- Config: https://github.com/facelessuser/Rummage/blob/master/.pyspelling.yml
- Then we run it in the
documents
task using Python's tox:
By default, PySpelling looks for .spelling.yml
(deprecated) or .pyspelling.yml
. You can also just manually specify the config.
By the way, if you’d prefer you are more than welcome to just include the Github Actions stuff in your own repo.
Seems interesting. Never played with GitHub Actions before. Definitely something I will probably play around with.
Hey, I'm the author of PySpelling. I saw you starred the repo, and was just curious how it was being used so I checked out your project. Nice to see people interested in using it because I figured I was most likely the only one using it.
With that said, I noticed a few things when looking at your test results:
After seeing the odd results of your output, I realized a few. the reason
connfiguration
doesn't show up in your results is that aspell, by default, still has its filters enabled. To be honest, this hadn't occurred to me up until now as the types of tests I was doing didn't expose this. To turn off Aspell filters just add the following to yourMarkdown
task:When running the markdown filter, it is probably desirable to run it through the
pyspelling.filters.html
filter right after it so you don't get things likehref
and such. It will then parse it with HTML.I'm wondering if it might be less confusing for PySpelling to set Aspell mode to
None
unless it is explicitly set to something by the user. As someone experimenting with the project, I'd be interested to hear your opinion. Anyways, hopefully my unsolicited comments are helpful.If you have any suggestions or comments with using PySpelling, I'd love to hear them, as right now I'm in an echo chamber.