Skip to content

Commit

Permalink
Add deprecation warning for implicit config files
Browse files Browse the repository at this point in the history
Signed-off-by: John Pennycook <[email protected]>
  • Loading branch information
Pennycook committed Feb 29, 2024
1 parent bf5b31e commit 0fdaab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/codebasin
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def main():
len(additional_platforms) == 0 and args.analysis_file is None
)
if config_file is None and config_required:
warnings.warn("Implicitly defined configuration files are deprecated.")
config_file = os.path.join(rootdir, "config.yaml")
if not os.path.exists(config_file):
raise RuntimeError(f"Could not find config file {config_file}")
Expand Down

0 comments on commit 0fdaab6

Please sign in to comment.