Add pre-commit hook for yaml formatting - #213
Merged
Merged
Conversation
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
There was a problem hiding this comment.
Pull request overview
This PR updates repository YAML formatting and introduces automated YAML formatting via pre-commit, aiming to keep YAML files consistently formatted across the codebase.
Changes:
- Add a
yamlfmtpre-commit hook and reformat.pre-commit-config.yamlaccordingly. - Normalize whitespace/blank-line formatting across several YAML configuration files (GitHub workflows, Dependabot, golangci-lint config).
- Bump the golangci-lint pre-commit hook version (v2.11.3 → v2.12.2).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.pre-commit-config.yaml |
Re-indents the config, adds yamlfmt, and bumps the golangci-lint hook version. |
.golangci.yml |
Removes a stray blank line to match YAML formatting conventions. |
.github/workflows/stale.yml |
Removes blank lines to normalize workflow YAML formatting. |
.github/workflows/push.yml |
Removes blank lines to normalize workflow YAML formatting. |
.github/workflows/main.yml |
Removes blank lines; still pins a different golangci-lint version than pre-commit. |
.github/dependabot.yml |
Removes blank lines to normalize YAML formatting. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+31
to
+34
| - repo: https://github.com/golangci/golangci-lint | ||
| rev: v2.12.2 | ||
| hooks: | ||
| - id: golangci-lint-full |
Comment on lines
41
to
44
| uses: omec-project/.github/.github/workflows/lint.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30 | ||
| with: | ||
| golangci_lint_version: 'v2.11.3' | ||
| branch_name: ${{ github.ref }} |
cmaciocco
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.