Skip to content

Add pre-commit hook for yaml formatting - #338

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#338
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:35
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

Adds YAML auto-formatting to the repository’s pre-commit checks and applies consistent formatting to existing YAML files (primarily removing whitespace-only blank lines and normalizing indentation) to match the formatter output.

Changes:

  • Add a yamlfmt pre-commit hook (google/yamlfmt).
  • Reformat YAML files across test configs, GitHub workflows, golangci config, and dependabot config to a consistent style.
  • Normalize list indentation in the subscriptions section of test_nssf_config.yaml.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/conf/test_nssf_config.yaml Reformats YAML and normalizes subscriptions list indentation.
test/conf/test_nssf_config_with_custom_webui_url.yaml Removes whitespace-only blank lines for consistent YAML formatting.
.pre-commit-config.yaml Adds yamlfmt hook and normalizes YAML indentation throughout the config.
.golangci.yml Removes whitespace-only blank line for consistent YAML formatting.
.github/workflows/stale.yml Removes whitespace-only blank lines for consistent YAML formatting.
.github/workflows/push.yml Removes whitespace-only blank lines for consistent YAML formatting.
.github/workflows/main.yml Removes whitespace-only blank lines for consistent YAML formatting.
.github/dependabot.yml Removes whitespace-only blank lines for consistent YAML formatting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gab-arrobo
gab-arrobo merged commit 0868e74 into omec-project:main Aug 18, 2026
12 checks passed
@gab-arrobo
gab-arrobo deleted the yaml-format branch August 18, 2026 23: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.

3 participants