-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add spellcheck workflow #162
Conversation
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.
It doesn't seem to unless we want to add a specific dictionary. https://github.com/marketplace/actions/github-spellcheck-action#configuration |
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.
LGTM
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.
Looking at the gha action, it requires a spellcheck.yml file which is not included in this PR.
For example: https://github.com/instructlab/instructlab/blob/main/.spellcheck.yml
I tested this PR in my fork and the spell check failed due to missing spellcheck.yml file.
Using pyspelling on configuration outlined in >spellcheck.yaml<
Checking files matching specified outlined in >spellcheck.yaml<
----------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/bin/pyspelling", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyspelling/__main__.py", line 30, in main
return run(
^^^^
File "/usr/local/lib/python3.12/site-packages/pyspelling/__main__.py", line 55, in run
for results in spellcheck(
File "/usr/local/lib/python3.12/site-packages/pyspelling/__init__.py", line 616, in spellcheck
config = util.read_config(config_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyspelling/util/__init__.py", line 186, in read_config
raise ValueError(
ValueError: Unable to find or load pyspelling configuration from spellcheck.yaml, for more details on configuration please read https://facelessuser.github.io/pyspelling/configuration/
Step 2 says you need to create a spellcheck.yml file. |
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.
Nice!
Very much in favor of this |
https://github.com/instructlab/community/actions/runs/8835495973/job/24259773634?pr=162#step:4:19
|
Also, this PR needs to fix any spelling errors that may exist so that the repo passes the spellcheck action. |
Ok, I've got to say it: I don't know why everybody seems to love those spellcheckers. In my experience they are a pain because there generate too many false positives. We're not producing literature and there are just too many terms we use that spellcheckers don't know, and about every PR needs to include its additions to the custom dictionary. |
I think it makes a lot of sense given the doc-heavy nature of this repo, and I don't think the dictionary maintenence is going to be too hard once we get a lot of the base terms out of the way. I've opened a PR for a Markdown Linter for this repo as well, they should pair well together: #218 |
6b6bf57
to
ed7c9ec
Compare
Co-authored-by: Christian Kadner <ckadner@us.ibm.com> Signed-off-by: JJ Asghar <awesome@ibm.com> Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
ed7c9ec
to
bca726d
Compare
Concerns have been address and reviewer is OOO
We have a bunch of documentation, it wouldn't hurt to have spell check.