Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Unable to specify files for spell checking #191

Open
M1troll opened this issue Oct 12, 2023 · 0 comments
Open

Unable to specify files for spell checking #191

M1troll opened this issue Oct 12, 2023 · 0 comments

Comments

@M1troll
Copy link

M1troll commented Oct 12, 2023

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  
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant