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
We ran into the same issue with the jupyter notebooks that other folks have (Re: #2138)
There were four of us at Pycon us 2023 troubling shooting this -- there are a lot of rapid PRs and then reverts around this -- the trail can be found here:
tldr; You can run a regex on the command line, but the same regex does not work in the codespell.yml and if it does it is not documented, so we didn't know which variable to use... we guessed.
This is the regex that worked on the commandline to basically ignore images & pngs that were in the jupyter notebook
Hot take: I don't know that codespell needs to figure out how to solve for jupyter notebooks - that seems like a secondary library that should exist like codespell-notebooks (or something else), but I think the regex that works on the commandline should work in the .yml file.
We ran into the same issue with the jupyter notebooks that other folks have (Re: #2138)
There were four of us at Pycon us 2023 troubling shooting this -- there are a lot of rapid PRs and then reverts around this -- the trail can be found here:
projectmesa/mesa#1661
tldr; You can run a regex on the command line, but the same regex does not work in the codespell.yml and if it does it is not documented, so we didn't know which variable to use... we guessed.
This is the regex that worked on the commandline to basically ignore images & pngs that were in the jupyter notebook
ignore_regex: ^\s*"image\/png":\s.*
And here is an example of the jupyter notebook output that is causing false errors.
Hot take: I don't know that codespell needs to figure out how to solve for jupyter notebooks - that seems like a secondary library that should exist like codespell-notebooks (or something else), but I think the regex that works on the commandline should work in the .yml file.
We got it to work by just ignoring jupyter notebooks in our docs folder:
skip: .*bootstrap.*,*.js,.*bootstrap-theme.css.map,./docs/*.ipynb
Let me know if you have any questions. I hope links I provided makes this and easier fix to navigate.
The text was updated successfully, but these errors were encountered: