From 7f48160be5b3e72e8610dd9aaad47e2dbcaa9c22 Mon Sep 17 00:00:00 2001 From: Tobias Brick Date: Fri, 4 Sep 2026 15:46:16 +0000 Subject: [PATCH 1/2] ci: enforce EditorConfig for YAML files Extend the existing pre-commit check so YAML files follow the repository-wide EditorConfig rules. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- CONTRIBUTING.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2501a7930a4..0fccd81e746 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: rev: e8b4e28241a9ae8296ba6e4a491b5da4eda73283 # 3.11.1 hooks: - id: editorconfig-checker - files: '\.toml$' + files: '\.(toml|ya?ml)$' - repo: https://github.com/commitizen-tools/commitizen rev: d910b66e2686a3ef6c3f438dec0f63ba3cf8d7ee # v4.18.0 hooks: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e6da654ddec..b65937ec67b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -128,8 +128,8 @@ For changes that affect RPM output, build and smoke-test the result. Pure docume or metadata changes don't require a rebuild. See the [`README.md`](README.md) for `azldev` commands. -Commit-message and TOML checks are managed by pre-commit. Install it and run the -file-oriented checks used by CI: +Commit-message, TOML, and YAML checks are managed by pre-commit. Install it and run +the file-oriented checks used by CI: ```bash python3 -m pip install -r scripts/ci/pre-commit/requirements.txt From d7ab2937b57fe32195ada456d4c10f3e07ce739d Mon Sep 17 00:00:00 2001 From: Tobias Brick Date: Fri, 4 Sep 2026 19:47:26 +0000 Subject: [PATCH 2/2] style(yaml): add missing final newline Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipelines/CodeQL/CodeQL.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pipelines/CodeQL/CodeQL.yml b/.pipelines/CodeQL/CodeQL.yml index 61ec9e061bc..2d52badc567 100644 --- a/.pipelines/CodeQL/CodeQL.yml +++ b/.pipelines/CodeQL/CodeQL.yml @@ -15,4 +15,4 @@ resources: stages: - stage: CodeQlAnalysis jobs: - - template: SDL/CodeQL-CBL-Mariner.yml@CBL-Mariner-Pipelines \ No newline at end of file + - template: SDL/CodeQL-CBL-Mariner.yml@CBL-Mariner-Pipelines