From 5c116e5e8274f1c321242fb033084f48113d87a0 Mon Sep 17 00:00:00 2001 From: Antony Milne Date: Tue, 3 Dec 2024 15:06:36 +0000 Subject: [PATCH] Ignore changelogs --- .pre-commit-config.yaml | 3 +-- .../changelog.d/20241203_150134_antony.milne_mdformat.md | 1 - vizro-core/changelog.d/new_fragment.md.j2 | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61db4cebf..d0596372c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,6 @@ repos: exclude: "devcontainer.json" # Contains comments. - id: trailing-whitespace - id: end-of-file-fixer - exclude: "new_fragment.md.j2" # Incompatible whitespace with mdformat in changelog snippet. - repo: local hooks: @@ -95,7 +94,7 @@ repos: --wrap=no, --align-semantic-breaks-in-lists, ] - exclude: ^vizro-core/docs/pages/API-reference|^vizro-ai/docs/pages/API-reference|vizro-core/docs/pages/user-guides/custom-components.md + exclude: ^vizro-core/docs/pages/API-reference|^vizro-ai/docs/pages/API-reference|vizro-core/docs/pages/user-guides/custom-components.md|^vizro-core/changelog.d|^vizro-ai/changelog.d additional_dependencies: - mdformat-mkdocs[recommended]==3.1.1 diff --git a/vizro-core/changelog.d/20241203_150134_antony.milne_mdformat.md b/vizro-core/changelog.d/20241203_150134_antony.milne_mdformat.md index 1d8073589..4abc0f11e 100644 --- a/vizro-core/changelog.d/20241203_150134_antony.milne_mdformat.md +++ b/vizro-core/changelog.d/20241203_150134_antony.milne_mdformat.md @@ -52,4 +52,3 @@ Uncomment the section that is right (remove the HTML comment wrapper). - A bullet item for the Security category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1)) --> - diff --git a/vizro-core/changelog.d/new_fragment.md.j2 b/vizro-core/changelog.d/new_fragment.md.j2 index cd78816f8..a09907bc6 100644 --- a/vizro-core/changelog.d/new_fragment.md.j2 +++ b/vizro-core/changelog.d/new_fragment.md.j2 @@ -11,5 +11,4 @@ Uncomment the section that is right (remove the HTML comment wrapper). - A bullet item for the {{ cat }} category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1)) --> - -{% endfor -%} \ No newline at end of file +{% endfor -%}