iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
565 stars 70 forks source link

auth: LocalWebserverAuth: fail if in non-interactive mode #319

Closed efiop closed 8 months ago

efiop commented 8 months ago

As noticed by @shcheklein , even if we are in CI, we will still try to launch a webserver and will be waiting for the user to complete auth through the web page.

We could create an env var to make it fail (or use CI env var in addition/instead), but it seems to be enough to just fail if stdout is not a tty instead.

Alternative ideas are also welcome.