Always use the configuration system’s default values instead of hardcoding defaults in the code. This ensures consistency across the application and makes configuration management more maintainable.
Bad:
DEFAULT_QUEUE: str = conf.get("operators", "default_queue", "default")
Good:
DEFAULT_QUEUE: str = conf.get_mandatory_value("operators", "default_queue")
For provider-specific configurations:
This approach centralizes configuration management, improves maintainability, and ensures consistent behavior across the application.
Enter the URL of a public GitHub repository