-
-
Notifications
You must be signed in to change notification settings - Fork 610
Description
🚀 feature request
Description
I would like smooth editor support of the python_rules. Now when I open an editor (tried helix and vscode) neither recognizes any of the third party imports properly breaking autocomplete and type checking.
Describe the solution you'd like
Something like what the rules_go people have done but I imagine that pyright (the most commonly used python language server) does not have support for something similar to the gopackagedriver.. So I was thinking more along the lines of a shell script that manipulates PATH
and PYTHONPATH
to achieve something similar. still hacky but better than what I have now. It's also something that would work for other python language server's such as ruff-lsp.
Describe alternatives you've considered
Manually make a venv with the same dependencies and activate that before starting my editor. Works fine but it's hackish and it won't work for generated code. For example python files generated from protobuf by Bazel..