From 35e73932a15206207f94e5f9db45306f721e2a5f Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 24 Oct 2024 13:13:14 -0500 Subject: [PATCH 1/2] ci: add more pre-commit checks Check for bad symlinks, check yaml files, and merge conflicts. Fixed bad symlink as well. --- .pre-commit-config.yaml | 6 ++++++ workflows/argo-events/docs/README.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc2cacb76..63bc8e140 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,11 +8,17 @@ repos: exclude: '^docs/overrides' - id: fix-byte-order-marker - id: mixed-line-ending + - id: check-merge-conflict + - id: check-yaml + args: + - --allow-multiple-documents + exclude: mkdocs.yml - id: check-yaml name: check-yaml-mkdocs # --unsafe is a workaround for the use of !! in mkdocs.yml args: [--unsafe] files: mkdocs.yml + - id: check-symlinks - repo: https://github.com/adrienverge/yamllint rev: v1.33.0 hooks: diff --git a/workflows/argo-events/docs/README.md b/workflows/argo-events/docs/README.md index 14e39e062..bb92d1639 120000 --- a/workflows/argo-events/docs/README.md +++ b/workflows/argo-events/docs/README.md @@ -1 +1 @@ -../../docs/component-understack-workflows.md \ No newline at end of file +../../../docs/component-understack-workflows.md \ No newline at end of file From e9bd499fbda7784efef580b7dd8a2ed8bb66021e Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 24 Oct 2024 13:17:30 -0500 Subject: [PATCH 2/2] ci: bump versions --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63bc8e140..80f8269ac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,16 +34,16 @@ repos: - schema/argo-workflows.json files: "workflows/argo-events/workflowtemplates/.*.(yml|yaml)$" - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.37.0 + rev: v0.42.0 hooks: - id: markdownlint files: '^docs/' - repo: https://github.com/crate-ci/typos - rev: v1.22.8 + rev: v1.26.8 hooks: - id: typos - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.4 + rev: v0.7.1 hooks: - id: ruff args: [--fix]