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

Devops: Exclude CP2K protocol YAML from format hook #338

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

sphuber
Copy link
Collaborator

@sphuber sphuber commented Mar 3, 2024

Fixes #336

The protocol file includes a couple of instances of ON and OFF that are intended as literal string values. The formatter strips quotes from strings without spaces as it is not required in YAML. However, in YAML, the ON and OFF values are also aliases for true and false and so the formatter standardizes these values to true and false. The file is excluded from the formatter for that reason.

The protocol file includes a couple of instances of `ON` and `OFF` that
are intended as literal string values. The formatter strips quotes from
strings without spaces as it is not required in YAML. However, in YAML,
the `ON` and `OFF` values are also aliases for `true` and `false` and so
the formatter standardizes these values to `true` and `false`. The file
is excluded from the formatter for that reason.
@sphuber sphuber requested a review from bosonie March 3, 2024 21:55
@sphuber
Copy link
Collaborator Author

sphuber commented Mar 3, 2024

@bosonie Thanks for testing. This should fix this problem, but since I cannot test CP2K I cannot be sure it caught everything. It would be great if you could give this another spin.

bosonie
bosonie previously approved these changes Mar 3, 2024
Copy link
Collaborator

@bosonie bosonie left a comment

Choose a reason for hiding this comment

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

@sphuber all good. Thanks!

@sphuber sphuber merged commit b738fd4 into master Mar 4, 2024
13 checks passed
@sphuber sphuber deleted the fix/336/cp2k-protocol-yamls branch March 4, 2024 07:35
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.

Recently added YAML formatter leads to crash with cp2k
2 participants