Skip to content

Commit

Permalink
Add our project specific changelog config
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivansh-007 committed Oct 18, 2021
1 parent 9dd44ff commit aa8bc6f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
7 changes: 0 additions & 7 deletions scripts/news/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit aa8bc6f

Please sign in to comment.