yaspeller icon indicating copy to clipboard operation
yaspeller copied to clipboard

Unable to specify files for spell checking

Open M1troll opened this issue 2 years ago • 0 comments

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:

  1. Install pre-commit:
pip install pre-commit
  1. Add hook in .pre-commit-config.yaml:
repos:
  - repo: https://github.com/hcodes/yaspeller.git
    rev: v8.0.1
    hooks:
      - id: yaspeller
  1. Run pre-commit:
pre-commit run --hook-stage push --all-files  

M1troll avatar Oct 12 '23 07:10 M1troll