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

Unable to specify files for spell checking #191

@M1troll

Description

@M1troll

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  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions