-
Notifications
You must be signed in to change notification settings - Fork 105
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 action for spellcheck and linkcheck #59
Conversation
Can run spellcheck locally with (conda create -n codespell codespell) |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Lots of broken links, can fix those in a follow up PR some complicated ones are also reported as broken but do resolve |
This is great! Is there also a pre-commit hook for spelling? (I know for links, pre-commit.ci doesn't work because it doesn't have internet access) |
Looks like there is! But I haven't used it. Should I add that as well or instead of the github action step? https://pre-commit.com/hooks.html |
Personally I would vote to aggregate them in pre-commit, because it's really easy to run locally. But your call! (Also fine to merge this now to avoid conflicts and then resolve after) |
We could also add the link check to pre-commit, add |
I advocate for merging this as-is and adding to pre-commit later if desirable. While I agree it would be convenient, both of these checks can have lots of false positives and the linkchecking can hang with network failures. So they seem well suited to opt-in or PR-level checks. The jupyterbook linkchecker I think also deals with many more formats and markup (myst-markdown). It does look possible to setup both opt-out (SKIP=codespell git commit -m "foo" ) or opt-in ( |
I agree ^. Also moving quickly is beneficial at the moment given the upcoming SciPy deadline. |
Very much agree re merging! Thanks for doing that! |
see https://github.com/codespell-project/codespell
and https://jupyterbook.org/en/stable/advanced/html.html#check-external-links-in-your-book