Skip to content

refactor(applets): drop omegaconf for a dotted config lookup - #167

Open
singlerider wants to merge 1 commit into
pin-bbot-v3.0.2from
remove-omegaconf
Open

refactor(applets): drop omegaconf for a dotted config lookup#167
singlerider wants to merge 1 commit into
pin-bbot-v3.0.2from
remove-omegaconf

Conversation

@singlerider

Copy link
Copy Markdown
Collaborator

applets/base.py imported OmegaConf for exactly one call site, which ran OmegaConf.select against self.global_config. That object is a pydantic BBOTServerSettings, not a DictConfig, so it was the wrong API for the type.

Replace it with select_dotted in utils/misc.py, which walks the dotted path over pydantic models and mappings alike and returns the default when a segment is missing or resolves to None.

Drops omegaconf and antlr4-python3-runtime from the lock.

Based on pin-bbot-v3.0.2 (#165) since that branch declares the omegaconf dependency this removes. Retarget to stable once #165 lands.

Verified: ruff check passes, ruff format --diff clean, uv sync --frozen exits 0, and select_dotted resolves nested pydantic paths, dict paths, missing segments, and None values to the default.

Closes #166

applets/base.py imported OmegaConf for exactly one call site, which
ran OmegaConf.select against self.global_config. That object is a
pydantic BBOTServerSettings, not a DictConfig, so it was the wrong
API for the type.

Replace it with select_dotted in utils/misc.py, which walks the
dotted path over pydantic models and mappings alike and returns the
default when a segment is missing or resolves to None.

Drops omegaconf and antlr4-python3-runtime from the lock.

Closes #166
@singlerider
singlerider requested a review from liquidsec August 24, 2026 15:11
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.

1 participant