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

allows users to silence deprecation warnings #1324

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

lavigne958
Copy link
Collaborator

Anyone can silence all the deprecation warnings using the env variable
GSPREAD_SILENCE_WARNINGS=1

closes #1323

Signed-off-by: Alexandre Lavigne lavigne958@gmail.com

Anyone can silence all the deprecation warnings using the env variable
GSPREAD_SILENCE_WARNINGS=1

closes #1323

Signed-off-by: Alexandre Lavigne <lavigne958@gmail.com>
@lavigne958 lavigne958 self-assigned this Oct 19, 2023
Copy link
Collaborator

@alifeee alifeee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I have suggested some minor changes.

If it is simple to add a test for this, then we should. Perhaps using pytest's with pytest.deprecated_call or with pytest.warns

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
gspread/utils.py Outdated Show resolved Hide resolved
gspread/utils.py Outdated Show resolved Hide resolved
gspread/utils.py Outdated Show resolved Hide resolved
Signed-off-by: Alexandre Lavigne <lavigne958@gmail.com>
@lavigne958
Copy link
Collaborator Author

I updated based on the review

README.md Outdated Show resolved Hide resolved
@lavigne958 lavigne958 merged commit 0a2f084 into master Oct 19, 2023
12 checks passed
@lavigne958 lavigne958 deleted the feature/allow_silence_warnings branch October 19, 2023 16:34
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.

Allow user to silence warnings
2 participants