Runtime authentication when no host is given — implementation plan
See the design.
- Change
_is_databricks_runtime_workspace_hostinsrc/decorative_secrets/databricks.pyto accepthost: str | None;Nonemeans the runtime's own workspace. - In
_get_env_databricks_workspace_client, remove thehost andprecondition and passhost or os.environ.get("DATABRICKS_HOST")to the helper. - Add a local test to
tests/test_databricks.py:_is_databricks_runtime_workspace_host(None)isFalseoutside a runtime (extend the existing parametrized tests where possible). - Extend
tests/is_databricks_runtime_task.py: a host-lessget_databricks_workspace_client()authenticates withruntimeandcurrent_user.me()succeeds; optionally a host-lessget_databricks_secretif a readable test scope exists. - Bump
pyproject.tomlto 0.14.2. - Verify:
hatch test -k is_databricks_runtime, thenmake formatandmake test.