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: Move default settings of quiet after profile parse #1764

Merged
merged 1 commit into from Jul 19, 2022

Conversation

pvandyken
Copy link
Contributor

@pvandyken pvandyken commented Jul 11, 2022

Description

This fixes the issue outlined in #1702 and referred to in #1660. Briefly, snakemake -q was being ignored when used in conjunction with a profile, as the code writing args.quiet as ["progress", "rules"] was getting overwritten by the default value of quiet (None) in the profile argument parser. This fix merely moves the code setting the default value of quiet to after the profile code.

QC

  • The PR contains a test case for the changes or the changes are already covered by an existing test case.
  • The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

@pvandyken pvandyken linked an issue Jul 11, 2022 that may be closed by this pull request
@pvandyken pvandyken changed the title Move default settings of quiet after profile parse feat: Move default settings of quiet after profile parse Jul 11, 2022
@pvandyken pvandyken changed the title feat: Move default settings of quiet after profile parse fix: Move default settings of quiet after profile parse Jul 11, 2022
It's previous position caused it to be overwritten when `--profile` was
used
@sonarcloud
Copy link

sonarcloud bot commented Jul 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--quiet default not respected when --profile is used
2 participants