-
Notifications
You must be signed in to change notification settings - Fork 1.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
"on venv creation" script #10264
Comments
On activate as in |
errr sorry changed the issue title. |
+1 |
+1
@majidaldo maybe mention |
my suggestion isn't on |
Why not just set the prompt when you create the venv? Is this when the venv is created via a specific command or.. ? |
No, not using the explicit command. For things like |
But... with those commands the |
Well... I checked, and this is embarrassing 😅 Either this wasn't the default behavior in some previous version, or I had messed up somewhere. I remember scouring the issues for such a request. And I ended up writing a custom script to do this. Although I have been seeing the correct prompt ever since, I figured this was solely due to my script, and didn't bother to check thoroughly. Sorry for the trouble! Thanks a lot! |
Haha thanks for following up, that's helpful. Just trying to understand the use-cases :) |
since we're developing python, i can get something functionally close if i hook stuff into a if dev(): # figure out if in dev mode
# setup steps
... something more involved would be to hook into a build script for some 'dev' package. |
Not sure I understand, since uv abstracts away venv activation no? But I don't wanna hijack your issue 😄 Maybe I will create a separate one. @zanieb I would be curious to hear your opinion on the intent behind |
that would be |
close to #10211.
Use cases:
pre-commit install
and environment variable setting.The text was updated successfully, but these errors were encountered: