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

Recommend that YAML keys be alphabetically sorted. #319

Closed
wants to merge 1 commit into from
Closed

Recommend that YAML keys be alphabetically sorted. #319

wants to merge 1 commit into from

Conversation

gouttegd
Copy link
Contributor

This PR adds a recommendation that the keys in the YAML metadata block (in both "embedded" and "external" modes) SHOULD be sorted by case-sensitive alphabetical order.

There is no particular reason for recommending alphabetical order over any other type of order, beyond the fact that sssom-py is already using alphabetical order (probably because that is seemingly the default behaviour of the PyYAML's safe_dump method used by sssom-py). So we just take the order that is de facto in use in the wild and make it the officially recommended order.

  • docs/ have been added/updated if necessary
  • make test has been run locally (no, documentation change only)
  • tests have been added/updated (no, documentation change only)
  • CHANGELOG.md has been updated.

This commit adds a recommendation that the keys in the YAML metadata
block (in both "embedded" and "external" modes) SHOULD be sorted by
case-sensitive alphabetical order.

There is no particular reason for recommending alphabetical order over
any other type of order, beyond the fact that sssom-py is already using
alphabetical order (probably because that is seemingly the default
behaviour of the PyYAML's 'safe_dump' method used by sssom-py). So we
just take the order that is de facto in use in the wild and make it the
officially recommended order.
@gouttegd
Copy link
Contributor Author

Closing since the alternative proposition (#320) has been approved. (In the event someone objects to “spec order“ and makes a case for alphabetical order we can reopen this one.)

@gouttegd gouttegd closed this Sep 20, 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.

1 participant