Skip to content
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

refactor: py_venv macro improved defaults for usability #396

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

alexeagle
Copy link
Member

After testing real developer workflows in vscode, this way works correctly and is much more practical.

Fixes #395
Screenshot 2024-10-01 at 2 55 13 PM


Changes are visible to end-users: no

Test plan

Try a few things in VScode:

  1. in the root, run bazel run app:app_bin.venv and see VSCode offers to open the resulting virtual env, labels it well
  2. open the app folder in the editor, then run bazel run app_bin.venv which also is detected
  3. run bazel run app_test.venv and the editor offers to switch
  4. open a terminal in vscode and run python -m pytest and the tests run correctly, meaning they should also be debuggable

After testing real developer workflows in vscode, this way works correctly and is much more practical.

Fixes #395
Copy link
Member

@gregmagolan gregmagolan left a comment

Choose a reason for hiding this comment

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

🌮

@alexeagle alexeagle merged commit b38c18f into main Oct 1, 2024
14 checks passed
@alexeagle alexeagle deleted the venv_location branch October 1, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: VSCode has trouble with virtualenvs in monorepo subfolder
2 participants