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

feat: return False when we do not discover any environment variables #388

Merged
merged 4 commits into from Jun 5, 2022

Commits on Mar 15, 2022

  1. Fix docstring for load_dotenv

    The docstring for load_dotenv was missing a word, rendering it confusing.
    This commits modifies it for clarity.
    larsks committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    e139830 View commit details
    Browse the repository at this point in the history
  2. Return False when we do not discover any environment variables

    This modifies Dotenv.set_as_environment_variables to return False
    if we have not discovered any environment variables via either
    `dotenv_path` or `stream`.
    
    The return value gets passed through to `load_dotenv`, so this can be
    used to determine if `dotenv.load_dotenv` was able to set anything.
    
    Closes theskumar#321
    larsks committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    1371bb8 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2022

  1. Configuration menu
    Copy the full SHA
    b67bca8 View commit details
    Browse the repository at this point in the history
  2. Update src/dotenv/main.py

    theskumar committed Jun 5, 2022
    Configuration menu
    Copy the full SHA
    9e40385 View commit details
    Browse the repository at this point in the history