Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for recursive glob patterns. #29

@balint-bg

Description

@balint-bg

One example where this could be useful: I'd like to disable pyflakes from analyzing any of the markdown files in my repo.
I know that in my pyproject.toml file I can set up plugin-specific exclusions for filepaths, like this:

[tool.flakehell.exceptions."*.md"]
# Do not analyze markdown files with pyflakes.
pyflakes = ["-*"]

But this above example only ignores markdown files in the top directory. Right now I have to resort to the ugly

[tool.flakehell.exceptions."*.md */*.md */*/*.md */*/*/*.md"]
pyflakes = ["-*"]

pattern and I would prefer not to write things that are this bad looking, and also not to have to remember to update that glob list whenever someone adds a markdown file one level deeper.

I was hoping that flakehell could support recursive globbing, so that the following beauty would work:

[tool.flakehell.exceptions."**/*.md"]
pyflakes = ["-*"]

If it's possible, I'd appreciate this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions