-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
?? prompt should be wrapped in paranthesis ?? #2224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this is not a fix. it's a feature as it changes current behaviour.
--promt=.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic looks alright, can you amend the existing tests to check for it?
I can't find where/how I'd add a test for it :') |
Probably here https://github.com/pypa/virtualenv/blob/main/tests/unit/activation/conftest.py#L125 you'd need to extend it 🤔 and then assert here https://github.com/pypa/virtualenv/blob/main/tests/unit/activation/conftest.py#L139 |
Okay, adding platform-specific prompt checks will take a while. |
Thank you! No worries. We are not in a rush 😊 |
Sorry for testing everything on CI, but it all works now. Weirdly though, the As for powershell, the non-ASCII characters are messing up. Expected: |
The CI is the true judge of everything works fine 😃 so you'll need to fix the CI for this to be ready to review 🙏 |
@gaborbernat All done, PTAL :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good the only thing remaining is a changelog entry, as a feature, announcing the change in behaviour.
for more information, see https://pre-commit.ci
It's crazy that some of these checks take 60-90 mins to run. There must be a better way 🤔 But anyway, doc entry has also been added, hopefully I did it right. |
Not that I'm aware so if you have suggestions don't hold back. |
Thanks for contributing, make sure you address all the checklists (for details on how see
development documentation)!
tox -e fix_lint
)docs/changelog
folderThis adds brackets and a space around the prompt text, in the case of
--prompt=.
Previous behaviour:
New behaviour:
This is a super trivial change, should I make a news fragment for this?