Skip to content

Commit

Permalink
try fix load_dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
karolzak committed Sep 16, 2020
1 parent 02aa415 commit fe50853
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pre_commit_nb/base64_to_external_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def validate_env_vars(


def main(argv: Optional[Sequence[str]] = None) -> int:
load_dotenv()
load_dotenv(verbose=True, override=True)

az_blob_container_url = os.environ.get("AZ_BLOB_CONTAINER_URL")
az_blob_container_sas_token_upload = os.environ.get("AZ_BLOB_CONTAINER_SAS_TOKEN_UPLOAD") # NOQA E501
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="pre_commit_nb",
version="0.2.4a1",
version="0.2.4a2",
description="Set of git pre-commit hooks for Jupyter Notebooks compatible with https://pre-commit.com/ framework", # NOQA E501
long_description=long_description,
long_description_content_type="text/markdown", # This is important!
Expand Down
3 changes: 2 additions & 1 deletion tests/test_base64_to_external_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
base64_to_blob_storage, main,
check_sas_token_for_correct_permissions, validate_env_vars)

load_dotenv() # tests doesnt work locally without this line
# tests doesnt work locally without this line
load_dotenv(verbose=True, override=True)

TEST1_FILE = "./tests/data/test1.png"
TEST1_B64 = "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACMSURBVDhPpc1RCsMgFETR7n/TFuIhJOqbKj0/gb479nNr//HKzc/n7AeOJyyXJHtsMm0ksoh6WXmdLSLpZHGwiKQP9T9skF7KhzqLSNk/mUWm3WBQUZ2wHDjusVmS/KIOhAVRpOyfmSqSXhYPqSLpw/vVDdKJgyrqZUWUaSNpRbXBYOB4wvLm51OtfQGRVu87E3xWdwAAAABJRU5ErkJggg==" # NOQA 501
Expand Down

0 comments on commit fe50853

Please sign in to comment.