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

Snakemake style guide: Add another way of accessing config values #170

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Sep 14, 2023

Description of proposed changes

Checking presence of a key in the config should be done with the membership operator. This must be done otherwise false-y values will stay false when membership is checked with config.get.

Related issue(s)

Checklist

  • Checks pass

Checking presence of a key in the config should be done with the
membership operator. This must be done otherwise false-y values will
stay false when membership is checked with config.get.
@victorlin victorlin requested a review from a team September 14, 2023 18:49
@victorlin victorlin self-assigned this Sep 14, 2023
@victorlin
Copy link
Member Author

Merging this small change. Open to reverting if anyone feels it's unnecessary.

@victorlin victorlin merged commit 568a675 into master Sep 21, 2023
@victorlin victorlin deleted the victorlin/update-config-access-tips branch September 21, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant