-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: master
Are you sure you want to change the base?
Conversation
tgrandje
commented
Oct 14, 2024
- 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
tbh, I am not sure that I want everything to be silenced by default |
@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. |
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
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 😉 ) |
Note: I cancelled the workflow to avoid having 2 (or 3) at the same time, but we'll need to restart those when possible. |