Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 24, 2024
1 parent 5b9da0c commit 336489c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/app/datalake.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def __init__(
self.dump_mode = dump_mode
self.csv_delimiter = csv_delimiter
self.force_unique_file_name = force_unique_file_name

self._base_path = os.path.join(os.getcwd(), "files")

self._validate_envs()

def _validate_envs(self) -> None:
mandatory_envs = [
"BASEDOSDADOS_CREDENTIALS_PROD",
Expand Down Expand Up @@ -215,5 +215,5 @@ def upload(
upload_folder, self._create_file_name(table_id, self.force_unique_file_name)
)
)

self._upload_files_in_folder(upload_folder, dataset_id, table_id)

0 comments on commit 336489c

Please sign in to comment.