Skip to content

Excluding a folder containing braces in its name fails #7959

Closed
@LKajan

Description

@LKajan

If folder containing braces in its name is configured to the extend-exclude ruff fails to run. ruff . produces an error:

ruff failed
  Cause: error parsing glob 'C:\Users\<>\cookiecutter-plugin\{{cookiecutter.plugin_package}}': nested alternate groups are not allowed

Ruff version: 0.0.292

My project structure and configuration:

./
├ {{cookiecutter.project_directory}}
├ hooks/
| ├ post_gen_project.py
├ pyproject.toml
# pyproject.toml
[tool.ruff]
extend-exclude = ["{{cookiecutter.plugin_package}}"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-infoMore information is needed from the issue authorquestionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions