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

Uniformize silent kwargs #224

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open

Conversation

tgrandje
Copy link
Collaborator

  • add silent kwarg to all function using the save_df decorator
  • uniformize the default silent value everywhere
  • inherit silent values from parent functions everywhere

* add silent kwarg to all function using the save_df decorator
* uniformize the default silent value everywhere
* inherit silent values from parent functions everywhere
@hadrilec
Copy link
Contributor

tbh, I am not sure that I want everything to be silenced by default

@tgrandje
Copy link
Collaborator Author

@hadrilec well, I was also not in favor of it, but most queries were already silenced. If we're ok that the default behaviour should be the invert, I'll do it. I still think we should have a consistent API, but that's all.

tgrandje and others added 24 commits January 24, 2025 22:00
Co-authored-by: tfardet <79037344+tfardet@users.noreply.github.com>
Co-authored-by: tfardet <79037344+tfardet@users.noreply.github.com>
* simplify _get_credentials and rename it to a more expressive name: retrieve configuration **only** from the latest config file
* remove API call checkups from init_conn and transfer it to the new session object (allowing to use quick and dirty patches to emulate a valid connection to all APIs during tests)
* ensure any invalid SIRENE key is never stored to the config file, but do not block pynsee if this is invalid as you may want to queries other APIs inly
* transfer warnings of os environ variables being used to the new session object and decline these warnings for each config key
* prune dead code (_set_sirene_key method)
* add tests ensuring new session object's configuration in diverse settings (explicit arg, os.environ or previously saved config file)
getting results triggered the exception, therefore results is not available
@tgrandje
Copy link
Collaborator Author

Just merged inspect-github-timeouts into this PR. We still need to decide whether the default should be silent=True or silent=False for a consistent API. (Either way is ok with me 😉 )

@tgrandje
Copy link
Collaborator Author

Note: I cancelled the workflow to avoid having 2 (or 3) at the same time, but we'll need to restart those when possible.

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.

2 participants