?? prompt should be wrapped in paranthesis ??#2224
Conversation
gaborbernat
left a comment
There was a problem hiding this comment.
Also this is not a fix. it's a feature as it changes current behaviour.
--promt=.
gaborbernat
left a comment
There was a problem hiding this comment.
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 :) |
gaborbernat
left a comment
There was a problem hiding this comment.
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/changelogfolderThis 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?