Skip to content

Raise exception on invalid type in pre_commit_yaml_to_cfg.py#9577

Merged
mik-laj merged 1 commit into
apache:masterfrom
PolideaInternal:invalid-type-yaml
Jun 29, 2020
Merged

Raise exception on invalid type in pre_commit_yaml_to_cfg.py#9577
mik-laj merged 1 commit into
apache:masterfrom
PolideaInternal:invalid-type-yaml

Conversation

@mik-laj
Copy link
Copy Markdown
Member

@mik-laj mik-laj commented Jun 29, 2020


Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Unit tests coverage for changes (not needed for documentation changes)
  • Target Github ISSUE in description if exists
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

configfile.write("# Example: {} = {}\n".format(option["name"], option["example"]))

if option["default"] is not None:
if not isinstance(option["default"], str):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is the key line

@mik-laj mik-laj merged commit bb2f3fe into apache:master Jun 29, 2020
@mik-laj mik-laj deleted the invalid-type-yaml branch June 29, 2020 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants