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

Add possibility to silence some warnings #3035

Merged
merged 5 commits into from
Jan 25, 2021

Conversation

cphyc
Copy link
Member

@cphyc cphyc commented Jan 25, 2021

PR Summary

As devs, we may want to silence some warnings when developing. For example, we may want to ignore the warning that both ~/.config/yt/ytrc and ~/.config/yt/yt.toml exist when working on both yt 3 and yt 4.

This PR adds supports for adding a list of warnings to simply ignore for devs convenience. I did not write any doc for this, as it is intended for devs only (otherwise users may simply ignore all warnings).

To use it, find the warning that is getting on your nerve, and save it in your config using

[yt.developers]
ignore_warnings = ["config:both_file_present"]

@cphyc cphyc added enhancement Making something better new feature Something fun and new! labels Jan 25, 2021
@matthewturk
Copy link
Member

Seems good to me!

@neutrinoceros neutrinoceros self-requested a review January 25, 2021 14:33
cphyc and others added 2 commits January 25, 2021 16:54
Co-authored-by: Clément Robert <cr52@protonmail.com>
@neutrinoceros neutrinoceros merged commit f7d4fbc into yt-project:main Jan 25, 2021
@cphyc cphyc deleted the feature/deactivate-ytrc-warning branch October 19, 2021 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making something better new feature Something fun and new!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants