Repository navigation
Make hydra-core an optional dependency - #287
Conversation
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #287 +/- ##
==========================================
- Coverage 93.84% 93.83% -0.02%
==========================================
Files 203 203
Lines 22477 22488 +11
Branches 1457 1458 +1
==========================================
+ Hits 21094 21101 +7
- Misses 1096 1099 +3
- Partials 287 288 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…xample The full extra ships the panel/spaday UI servers, whose CLIs import ccflow.utils.hydra when building their argument parser, so hydra-core must be installed for them to run. The narwhals_pipelines notebook loads its registry through a Hydra config via load_config, which also requires hydra-core now that it is optional. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ptomecek
left a comment
There was a problem hiding this comment.
Approving. hydra-core is cleanly made optional: lazy imports throughout, and _dict_config_type() correctly avoids importing omegaconf just to isinstance-check (a DictConfig can't exist unless omegaconf is already loaded). The dedicated test_without_hydra covers the optional path, and I verified the config/registry/lazy suites pass with and without hydra present.
I pushed one small fix: hydra-core was added to develop and test but not full, which ships the panel/spaday UI servers. Their CLIs import ccflow.utils.hydra while building the argument parser, so pip install ccflow[full] would have left the UI unable to start (it fails even at --help). Also added a one-line note to the narwhals_pipelines notebook, since its setup cell loads the registry via load_config and now needs hydra-core.
No description provided.