diff --git a/.gitignore b/.gitignore index 5a267be8..d605b3bf 100644 --- a/.gitignore +++ b/.gitignore @@ -137,7 +137,7 @@ logs # Configuration *config.toml -!scripts/news/default_config.toml +!scripts/news/config.toml # Custom docker compose override docker-compose.override.yml diff --git a/scripts/news/default_config.toml b/scripts/news/config.toml similarity index 100% rename from scripts/news/default_config.toml rename to scripts/news/config.toml diff --git a/scripts/news/utils.py b/scripts/news/utils.py index 61caefc6..a2ff36dc 100644 --- a/scripts/news/utils.py +++ b/scripts/news/utils.py @@ -136,14 +136,7 @@ def get_project_meta() -> Tuple[str, str]: def load_toml_config() -> Dict[str, Any]: config_path = Path(Path.cwd(), "scripts/news/config.toml") - default_config_url = "URL HERE PLEASE" - if not config_path.exists(): - err( - f"Configuration not found. Create a config file at '{config_path}', and see " - f"'{default_config_url}' for an example configuration. " - ) - sys.exit(1) try: with open(config_path, mode="r") as file: toml_dict = tomli.loads(file.read())