Skip to content

style: yamlfmt #239

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

style: yamlfmt #239

wants to merge 1 commit into from

Conversation

tristan-f-r
Copy link
Collaborator

Closes #48. this uses the yamlfmt default config, which uses 2 spaces instead of four - a convention that seems to be recommended.

[If any style opinion that deviates from yamlfmt's default is preferred I will immediately add it. I do not want bikeshedding.]

@@ -24,3 +24,7 @@ repos:
rev: 'v0.0.269'
hooks:
- id: ruff
- repo: https://github.com/google/yamlfmt
Copy link
Collaborator Author

@tristan-f-r tristan-f-r May 28, 2025

Choose a reason for hiding this comment

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

Note that the actual lines of code changed are here - this uses a pinned version of the yamlfmt pre-commit hook provided by Google.

@tristan-f-r tristan-f-r added infrastructure misc. changes made to SPRAS itself easy PRs which take at most a minute to review with little thinking. labels May 29, 2025
Copy link
Collaborator

@agitter agitter left a comment

Choose a reason for hiding this comment

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

I only looked at the .pre-commit-config.yaml changes so far and like the idea of adding yamlfmt. One of us should manually review the automatically updates applied to the .yml/.yaml files before merging to make sure all of them look okay.

@tristan-f-r tristan-f-r removed the easy PRs which take at most a minute to review with little thinking. label Jun 6, 2025
@tristan-f-r
Copy link
Collaborator Author

Since reviewing all of these YAML files is quite a tedious task, I've removed easy from this PR.

@tristan-f-r
Copy link
Collaborator Author

tristan-f-r commented Jun 11, 2025

Restricted yamlfmt to allow single newlines. These are now all just tab changes, which is a simple scroll-through review.

@tristan-f-r tristan-f-r added the easy PRs which take at most a minute to review with little thinking. label Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy PRs which take at most a minute to review with little thinking. infrastructure misc. changes made to SPRAS itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lint YAML config file
2 participants