Skip to content

Commit

Permalink
Update excel.py
Browse files Browse the repository at this point in the history
format fixes
  • Loading branch information
jwills authored Aug 8, 2023
1 parent c6cb22c commit e56f3b3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dbt/adapters/duckdb/plugins/excel.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
import pathlib
from typing import Any
from typing import Dict

import pathlib

import pandas as pd

from . import BasePlugin
Expand All @@ -14,11 +13,11 @@ class Plugin(BasePlugin):
def initialize(self, plugin_config: Dict[str, Any]):
# Pass s3 settings to plugin environment
if "s3_access_key_id" in plugin_config:
os.environ["AWS_ACCESS_KEY_ID"] = plugin_config.get("s3_access_key_id")
os.environ["AWS_ACCESS_KEY_ID"] = plugin_config["s3_access_key_id"]
if "s3_secret_access_key" in plugin_config:
os.environ["AWS_SECRET_ACCESS_KEY"] = plugin_config.get("s3_secret_access_key")
os.environ["AWS_SECRET_ACCESS_KEY"] = plugin_config["s3_secret_access_key"]
if "s3_region" in plugin_config:
os.environ["AWS_DEFAULT_REGION"] = plugin_config.get("s3_region")
os.environ["AWS_DEFAULT_REGION"] = plugin_config["s3_region"]

def load(self, source_config: SourceConfig):
ext_location = source_config["external_location"]
Expand Down

0 comments on commit e56f3b3

Please sign in to comment.