Skip to content

feat: add scaffold script for directory + dataset.yaml setup#412

Merged
adlersantos merged 7 commits into
GoogleCloudPlatform:mainfrom
alick-at-google:generate-pipeline-files-script
Jul 29, 2022
Merged

feat: add scaffold script for directory + dataset.yaml setup#412
adlersantos merged 7 commits into
GoogleCloudPlatform:mainfrom
alick-at-google:generate-pipeline-files-script

Conversation

@alick-at-google

@alick-at-google alick-at-google commented Jul 12, 2022

Copy link
Copy Markdown
Contributor

Description

Note: If you are adding or editing a dataset, please specify the dataset folder involved, e.g. datasets/google_trends

Checklist

  • (Required) This pull request is appropriately labeled
  • Please merge this pull request after it's approved

Use the sections below based on what's applicable to your PR and delete the rest:

Feature

  • I'm adding or editing a feature
  • I have added/revised tests for the feature

Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
@adlersantos

Copy link
Copy Markdown
Member

When generating the resulting files, please add the license header:

def write_to_file(contents: str, filepath: pathlib.Path):
license_header = pathlib.Path(TEMPLATE_PATHS["license"]).read_text() + "\n"
with open(filepath, "w") as file_:
file_.write(license_header + contents.replace(license_header, ""))

Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
@adlersantos

Copy link
Copy Markdown
Member

This is looking good for a 1st version! 👍🏼 Time to add tests.

Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
Comment thread tests/scripts/test_generate_pipeline.py Outdated
Comment thread tests/scripts/test_generate_pipeline.py Outdated
Comment thread scripts/generate_pipeline_files.py Outdated
@adlersantos adlersantos added the feature request New feature or request label Jul 22, 2022
@adlersantos adlersantos changed the title feat: add generate pipeline directory + dataset.yaml script feat: add scaffold script for directory + dataset.yaml setup Jul 29, 2022

@adlersantos adlersantos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@adlersantos adlersantos merged commit 5bf354b into GoogleCloudPlatform:main Jul 29, 2022
vijay-google pushed a commit to vijay-google/public-datasets-pipelines that referenced this pull request Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants