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

fix: return set instead of list when just --quiet #2829

Merged
merged 2 commits into from Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion snakemake/cli.py
Expand Up @@ -1761,7 +1761,7 @@ def parse_args(argv):
def parse_quietness(quietness) -> Set[Quietness]:
if quietness is not None and len(quietness) == 0:
# default case, set quiet to progress and rule
quietness = [Quietness.PROGRESS, Quietness.RULES]
quietness = {Quietness.PROGRESS, Quietness.RULES}
else:
quietness = Quietness.parse_choices_set(quietness)
return quietness
Expand Down
2 changes: 1 addition & 1 deletion snakemake/logging.py
Expand Up @@ -746,7 +746,7 @@ def setup_logger(
quiet = set()
elif not isinstance(quiet, set):
raise ValueError(
"Unsupported value provided for quiet mode (either bool, None or list allowed)."
"Unsupported value provided for quiet mode (either bool, None or set allowed)."
)

logger.log_handler.extend(handler)
Expand Down