Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all deprecation warnings DeprecationWarnings #69

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bin/codebasin
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def main():
elif args.rootdir:
warnings.warn(
"--rootdir (-r) is deprecated. Use --source-dir (-S) instead.",
DeprecationWarning,
)
rootpath = args.rootdir
rootdir = os.path.realpath(rootpath)
Expand Down Expand Up @@ -210,7 +211,10 @@ 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.")
warnings.warn(
"Implicitly defined configuration files are deprecated.",
DeprecationWarning,
)
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 All @@ -230,6 +234,7 @@ def main():
warnings.warn(
"YAML configuration files are deprecated. "
+ "Use TOML analysis files instead.",
DeprecationWarning,
)
if not util.ensure_yaml(config_file):
logging.getLogger("codebasin").error(
Expand Down
Loading