yaspeller
yaspeller copied to clipboard
Unable to specify files for spell checking
Problem
I tried to add a yaspeller hook to my project to check the documentation (.md and .rst files).
I specified fileExtensions:
"fileExtensions": [
".md",
".rst"
],
but yaspeller still checks other files as well (.yaml, .py and etc.)
I also try to exclude this files in excludeFiles
"excludeFiles": [
"*.py",
"*.yaml",
".py",
".yaml"
]
but even this had no effect.
Note: specifying the full path to the file works, but do I really need to add the paths of all the files of my project here? It looks wrong.
Reproduce
You can clone my test repo for reproduce my situation: https://github.com/M1troll/speller
And follow steps below:
- Install
pre-commit:
pip install pre-commit
- Add hook in
.pre-commit-config.yaml:
repos:
- repo: https://github.com/hcodes/yaspeller.git
rev: v8.0.1
hooks:
- id: yaspeller
- Run pre-commit:
pre-commit run --hook-stage push --all-files