Skip to content

Add pre-commit hook for yaml formatting - #213

Merged
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:yaml-format
Aug 18, 2026
Merged

Add pre-commit hook for yaml formatting#213
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:yaml-format

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

@gab-arrobo
gab-arrobo requested review from a team and a lite review from Copilot August 18, 2026 21:30
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 yamlfmt pre-commit hook and reformat .pre-commit-config.yaml accordingly.
  • 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 thread .pre-commit-config.yaml
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 }}
@gab-arrobo
gab-arrobo merged commit 5fc9e29 into omec-project:main Aug 18, 2026
9 checks passed
@gab-arrobo
gab-arrobo deleted the yaml-format branch August 18, 2026 23:31
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.

3 participants