Closed kianmeng closed 1 year ago
Doesn't seem to be working.. I added a comment typo and ran pre-commit run
, and codespell passes without any message.
source_path: Optional[str] # Sxmbol
Unfortunately, codespell
don't contains that incorrect typo, Sxmbol
in its dictionary file. Maybe because it's not that common, https://github.com/search?q=sxmbol&type=code.
If we change the incorrect typo to:
>> 74 source_path: Optional[str] # Symbo
It worked just fine, as shown:
$ pre-commit run --all-files
...
codespell................................................................Failed
- hook id: codespell
- exit code: 65
lark/lark.py:74: symbo ==> symbol
Sorry for the delay. Thanks for contributing!
:partying_face: :partying_face: :partying_face: :partying_face: :partying_face:
As discussed https://github.com/lark-parser/lark/pull/1242