Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurprevot committed Jun 16, 2024
1 parent b02d9bc commit 10aa4eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/generic/list_files_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def transform(self, files):
pattern_type = 'glob'

session = get_aws_setup(self.jargs.merged_args)

s3 = session.client('s3')

if not CPt(f"s3://{path_raw_in.bucket}").exists() and self.jargs.merged_args.get('ignore_empty_bucket'):
Expand All @@ -42,7 +42,7 @@ def transform(self, files):
def get_filenames(self, s3, bucket_name, prefix, pattern, pattern_type):
files = []
for (obj, file_name) in self.s3_iterator(s3, bucket_name, prefix, pattern, pattern_type):
files.append('s3://'+bucket_name + '/' + obj['Key'])
files.append('s3://' + bucket_name + '/' + obj['Key'])
return files

def s3_iterator(self, s3, bucket_name, prefix, pattern, pattern_type):
Expand Down
1 change: 1 addition & 0 deletions yaetos/scripts/yaetos_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def setup_env(args):
copyfile(Pt(f'{package_path}/libs/generic_jobs/sql_spark_job.py'), Pt(f'{cwd}/jobs/generic/sql_spark_job.py'))
copyfile(Pt(f'{package_path}/libs/generic_jobs/sql_pandas_job.py'), Pt(f'{cwd}/jobs/generic/sql_pandas_job.py'))
copyfile(Pt(f'{package_path}/libs/generic_jobs/compare_pandas_job.py'), Pt(f'{cwd}/jobs/generic/compare_pandas_job.py'))
copyfile(Pt(f'{package_path}/libs/generic_jobs/list_files_job.py'), Pt(f'{cwd}/jobs/generic/list_files_job.py'))

# Sample jobs
os.makedirs(Pt('jobs/examples/'), exist_ok=True)
Expand Down

0 comments on commit 10aa4eb

Please sign in to comment.