Skip to content

feat: Adding '---' to the beginning of yaml files generated by cli#48

Merged
Christos-Hadjinikolis merged 2 commits into
masterfrom
cli_adheres_to_yamlint
Mar 28, 2023
Merged

feat: Adding '---' to the beginning of yaml files generated by cli#48
Christos-Hadjinikolis merged 2 commits into
masterfrom
cli_adheres_to_yamlint

Conversation

@Christakou
Copy link
Copy Markdown
Contributor

Overview

Current CLI tool generated schemas dont adhere to the yamllint convention of starting the file with '---'
This fixes it.

Key Changes

Added a line to write '---' at the beginning of yaml files

Tested locally

Comment thread tests/conftest.py

def __enter__(self):
return Mock(), None
return Mock()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was returning a tuple, which has not '.write' method, and was messing up the tests.
Changed it to return a mock object, all tests continued to run succesfully.

@Christakou Christakou added bug Something isn't working echoes/effort: S Low effort changes (M * 0.5) labels Mar 28, 2023
Copy link
Copy Markdown
Collaborator

@Christos-Hadjinikolis Christos-Hadjinikolis left a comment

Choose a reason for hiding this comment

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

Love how consistent you are !! ❤️

@Christos-Hadjinikolis Christos-Hadjinikolis merged commit b41299b into master Mar 28, 2023
@Christos-Hadjinikolis Christos-Hadjinikolis deleted the cli_adheres_to_yamlint branch March 28, 2023 13:01
joloppo added a commit that referenced this pull request Jul 11, 2023
* feat: Adding '---' to the beginning of yaml files generated by cli (#48)

* feat: Adding '---' to the beginning of yaml files generated by cli

* feat: renaming variable

* feat: add resource migration script

* feat: Add migration cli

* feat: add schema migration script

* feat: Working migration command for schemas

* Add capability to convert both schemas and resources

---------

Co-authored-by: Christiano <41486691+Christakou@users.noreply.github.com>
Co-authored-by: Artur Krochin <artur.krochin@vortexa.com>
joloppo added a commit that referenced this pull request Jul 19, 2023
* feat: Adding '---' to the beginning of yaml files generated by cli (#48)

* feat: Adding '---' to the beginning of yaml files generated by cli

* feat: renaming variable

* feat: add resource migration script

* feat: Add migration cli

* feat: add schema migration script

* feat: Working migration command for schemas

* Add capability to convert both schemas and resources

* Add uhura & serde for file resources

* Correct typehint

* Change hdf extension

* Add uhura tests & fix missing test_path attributes

* Add uhura for s3 resources (& tests)

* Fix migration script confirm prompt

* Add injections and checking in all relevant places

* Add postgres + uhura resource

* Add missing check_injections to postgres

* Correct postgres cache key and test

* Add kafka + uhura resource

* Remove dead code

* Remove dead code

* Add and improve tests

* Fix test writing to files

* Remove dead code

* Format code

* Add kafka inject tests

* Format code

* Add tests for serde and change serde init signature

* Add resource test_path inject test

* Update migration scripts to work for new uhura based resources

* Add brackets

---------

Co-authored-by: Christiano <41486691+Christakou@users.noreply.github.com>
Co-authored-by: Artur Krochin <artur.krochin@vortexa.com>
joloppo added a commit that referenced this pull request Jul 19, 2023
* feat: Adding '---' to the beginning of yaml files generated by cli (#48)

* feat: Adding '---' to the beginning of yaml files generated by cli

* feat: renaming variable

* feat: add resource migration script

* feat: Add migration cli

* feat: add schema migration script

* feat: Working migration command for schemas

* Add capability to convert both schemas and resources

* feat: add support for has_no_nulls validation

* feat: add support for is_in validator

* feat: add support for uniqueness validator

* feat: add support for greater than validation

* fix: fix issue with empty normalized col names

* feat: add validator for greater than or equals

* feat: add validator for is between

* fix: remove scaffolding

* fix: optimise imports

* feat: add note about custom validations

* feat: Add demo files

* feat: Correct demo files

* feat: Add less than and less equals to schema migration cli

* feat: Add migration schema match_all warning

---------

Co-authored-by: Christiano <41486691+Christakou@users.noreply.github.com>
Co-authored-by: Artur Krochin <artur.krochin@vortexa.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working echoes/effort: S Low effort changes (M * 0.5)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants