#9479 refactor: Remove missing import handling for state backends now that they are loaded dynamically
Pull request opened by
edgarrmondragon
Take 2 for
#9475.
## Description
## Related Issues
• Closes #XXXX
## Summary by Sourcery
Refactor state storage backends to drop hard-coded missing‐dependency guards, extract setting definitions into dedicated modules, and simplify client initialization while updating entry points and tests to match the new structure.
New Features:
• Raise InvalidStateBackendConfigurationException for S3 clients missing access key ID or secret key
Enhancements:
• Remove Missing_Error classes and requires_ context managers from Google, S3, and Azure backends
• Extract all state backend SettingDefinition entries into new settings modules under core/state_store
• Simplify GCS, S3, and Azure client() methods by removing import guards and relying on dynamic imports
• Update pyproject.toml entry points to reference the new settings and backend module paths
• Enable follow_untyped_imports in mypy config
Tests:
• Update tests to import backends and settings from new paths
• Add tests for missing AWS access key ID and secret access key error scenarios
meltano/meltano