Python support is available as part of the IntelliJ plugin.
Follow these instructions to import your Bazel project.
To enable python support, your project view file must include python as an additional_language:
Alternatively, if you're not developing in Java, you can specify:
In practice, there's very little difference between the two when developing in python, so adding an additional language is generally preferable, as it retains Java support.
Running tests / Debugging
Debugging is supported for
py_test targets. Simply create a
run configuration by right-clicking on a Bazel target or test
file/class/function, then run it in debug mode. Detailed instructions