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

add --- document separator to beginning of deprecated.yaml file #852

Conversation

turbomam
Copy link
Member

@turbomam turbomam commented Aug 19, 2024

LinkML provides a linkml-lint tool to check for schema content that isn't illegal but is strongly discouraged.

But even that doesn't check for standardized YAML content. Sticking with a standardized YAML format can help us detect unusual styles before they become LinkML errors.

@sujaypatil96 and I added a GitHub action that runs mixs.yaml though yamllint in a previous PR.

This PR is the fruition of yamllint: it noticed that we are not starting mixs.yaml with the recommended YAML document separator (---) , so we are proposing to add it in this PR.

The document separator is not required in a file that only contains a single document (which is the case mixs.yaml), but is an illustration of using a standardized format. Eventually we will be able to detect unusual styles with yamllint and fix them with yamlfmt.

The MIxS community can collectively decide which yamllint and yamlfmt suggested styles we want to accept as is, which we wish to fine tune, and which we wish to disregard.

add `---` document separator to beginning oy deprecated.yaml file
@turbomam turbomam requested a review from sujaypatil96 August 19, 2024 17:54
@turbomam turbomam linked an issue Aug 19, 2024 that may be closed by this pull request
Copy link
Collaborator

@sujaypatil96 sujaypatil96 left a comment

Choose a reason for hiding this comment

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

🚀

@turbomam turbomam changed the title add --- document separator to beginning oy deprecated.yaml file add --- document separator to beginning of deprecated.yaml file Aug 20, 2024
@sujaypatil96
Copy link
Collaborator

Do you want to go ahead and merge this in @turbomam?

@turbomam
Copy link
Member Author

@sujaypatil96 yes, I don't see it as controversial, but I guess it would be get some review from @mslarae13 and or @lschriml

Copy link
Contributor

@mslarae13 mslarae13 left a comment

Choose a reason for hiding this comment

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

LGTM

@turbomam
Copy link
Member Author

turbomam commented Oct 1, 2024

add guidance about YAML formatting to whatever existing documentation we have

@turbomam turbomam merged commit 64d8a4f into main Oct 1, 2024
3 checks passed
@turbomam turbomam deleted the 851-add-document-separator-to-beginning-of-srcmixsschemadeprecatedyaml branch October 1, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

add document separator to beginning of src/mixs/schema/deprecated.yaml
3 participants