Repository navigation
Refactor plugin configuration and startup with Pydantic Settings - #19
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace manual TOML configuration wrappers and Typer with Pydantic Settings, preserving Stream Deck's host launch flags. Startup passes one argument list to both settings models and separates CLI setup from manager execution.
[tool.streamdeck]from the working directory'spyproject.toml;--plugin-dircontrols module imports only.--action-scriptsand--event-listener/--event-listener-modulesoptions to replace their respective TOML lists. Exclude environment, dotenv, secrets, and constructor field sources.RegistrationInfo, exposingplugin.uuidasplugin_uuid; the manager stores that normalized dictionary.Compatibility: removes
PyProjectConfigs,ToolSection, and Typer completion flags;run_pluginnow takes both validated settings models. Discovery follows module namespace insertion order. Pipe-syntax annotations use a conditional backport on Python 3.9.Validation: PR CI at commit
8a7528epasses the Python 3.9–3.13 test matrix and distribution-build/metadata/installed-wheel checks. A clean local export also passed all 186 tests on Python 3.13.18. Live Stream Deck startup remains unverified.