Skip to content

Fix: accept hyphens in generative section names #1647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 7, 2020

Conversation

Tyagdit
Copy link

@Tyagdit Tyagdit commented Aug 6, 2020

Generative section names wouldn't work if there were hyphens within the braces. the regex caused everything after the hyphen to be omitted resulting in not being able to use empty factors like [testenv:foo{,-factor}] and forcing users to put the hyphens outside the braces.

Fixes #1636

Contribution checklist:

  • wrote descriptive pull request text
  • added/updated test(s)
  • updated/extended the documentation
  • added relevant issue keyword in message body
  • added news fragment in changelog folder
  • added yourself to CONTRIBUTORS (preserving alphabetical order)

Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need a test too here 🙂

@gaborbernat gaborbernat merged commit 23dd96f into tox-dev:master Aug 7, 2020
@The-Compiler
Copy link
Member

Yay! Thanks @Tyagdit and @gaborbernat 🎉

ssbarnea pushed a commit to ssbarnea/tox that referenced this pull request Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generative section names don't work with empty factor
3 participants