Skip to content

Feature/change sequence flow style to enum#203

Merged
lyz-code merged 3 commits intolyz-code:mainfrom
marcules:feature/change-sequence-flow-style-to-enum
Jan 2, 2023
Merged

Feature/change sequence flow style to enum#203
lyz-code merged 3 commits intolyz-code:mainfrom
marcules:feature/change-sequence-flow-style-to-enum

Conversation

@marcules
Copy link
Contributor

@marcules marcules commented Jan 1, 2023

This fixes #196, this resolves #198

This is a continuation of #198 - it adds tests and explicitly checks for the enum value and converts it to boolean, because the underlying library ruyaml expects bools for "sequence flow_style" to be either True (flow_style) or False (block_style).

Checklist

  • Add test cases to all the changes you introduce
  • Update the documentation for the changes

rename SequenceStyle

updated tests with new field

updating git ignore

rename SequenceStyle

updated tests with new field

updating git ignore

Lint compatible code and test

added a docstring for the enum

converted to one-line docstring

renamed the enum and fields as per @marcules suggestions

lint compatible imports
adapters now use the new style_squence enums

docs updated with SequenceStyle info
@marcules marcules force-pushed the feature/change-sequence-flow-style-to-enum branch from 2de3b72 to 58b7eec Compare January 1, 2023 20:19
@marcules marcules force-pushed the feature/change-sequence-flow-style-to-enum branch from 58b7eec to cd112f5 Compare January 1, 2023 20:26
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3818560840

  • 10 of 10 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 99.762%

Totals Coverage Status
Change from base Build 3787161522: 0.003%
Covered Lines: 420
Relevant Lines: 421

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 3818560840

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at ?%

Totals Coverage Status
Change from base Build 3787161522: 0%
Covered Lines:
Relevant Lines: 0

💛 - Coveralls

Copy link
Owner

@lyz-code lyz-code left a comment

Choose a reason for hiding this comment

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

Perfect contribution, thank you :)

@lyz-code lyz-code merged commit 5dc35b3 into lyz-code:main Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change sequence flow-style option from Optional[bool] to enum

4 participants