Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CumulusCI.yml linter based on Pydantic #1624

Merged
merged 39 commits into from
Apr 8, 2021
Merged

Conversation

prescod
Copy link
Contributor

@prescod prescod commented Mar 19, 2020

Validates CumulusCI.yml files now. If they do not match the pattern, it will generate a warning.

Incorporates the NBSP cleanup tool from the other branch.

TheBitShepherd
TheBitShepherd previously approved these changes Sep 15, 2020
Copy link
Contributor

@TheBitShepherd TheBitShepherd left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for letting me walk myself through the code with you @prescod!

@davisagli davisagli changed the base branch from master to main December 30, 2020 17:54
@davisagli
Copy link
Contributor

@prescod A big part of why I let this one stall out is because I'm nervous about breaking things because there is something used in the wild that we missed including in the validator. Could we start with this in a mode that is either opt-in or logs warnings rather than aborting, so that we have a way to try it out and find the gaps?

@prescod
Copy link
Contributor Author

prescod commented Feb 12, 2021

@davisagli

If my time machine is properly functioning then that's how it already works. :)

It returns the data along with printing warnings about problems.

This iteration of it does not block people from using incorrect CCI.yml files. The Pydantic model is used entirely in an advisory way.

@prescod prescod changed the title CumulusCI.yml validator based on Pydantic CumulusCI.yml linter based on Pydantic Feb 25, 2021
cumulusci/core/config/universal_config.py Outdated Show resolved Hide resolved
cumulusci/utils/yaml/cumulusci_yml.py Outdated Show resolved Hide resolved
cumulusci/utils/yaml/cumulusci_yml.py Outdated Show resolved Hide resolved
cumulusci/utils/yaml/cumulusci_yml.py Show resolved Hide resolved
cumulusci/utils/yaml/cumulusci_yml.py Outdated Show resolved Hide resolved
cumulusci/utils/yaml/cumulusci_yml.py Outdated Show resolved Hide resolved
cumulusci/utils/yaml/cumulusci_yml.py Show resolved Hide resolved
cumulusci/utils/yaml/cumulusci_yml.py Outdated Show resolved Hide resolved
cumulusci/utils/yaml/safer_loader.py Outdated Show resolved Hide resolved
cumulusci/utils/yaml/safer_loader.py Outdated Show resolved Hide resolved
prescod and others added 2 commits April 2, 2021 00:12
Co-authored-by: David Glick <dglick@salesforce.com>
davisagli
davisagli previously approved these changes Apr 8, 2021
@davisagli davisagli merged commit fdfb38f into main Apr 8, 2021
@davisagli davisagli deleted the feature/cci_yml_parser branch April 8, 2021 15:33
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.

4 participants