From 6f30fd3406f60e9a98d5712ec03a3281733e52b9 Mon Sep 17 00:00:00 2001 From: Arnau Casau <47946624+arnaucasau@users.noreply.github.com> Date: Mon, 27 Nov 2023 19:30:50 +0100 Subject: [PATCH] Stop checking the metadata from historical files (#412) This PR disables the validation of metadata in the historical version files. This PR unblocks #411 where we introduce several historical versions with files pending to fix in a follow-up. --------- Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com> Co-authored-by: abbycross --- scripts/commands/checkMetadata.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/commands/checkMetadata.ts b/scripts/commands/checkMetadata.ts index 78a9dc4e50c..cebd9ab2a13 100644 --- a/scripts/commands/checkMetadata.ts +++ b/scripts/commands/checkMetadata.ts @@ -17,7 +17,6 @@ import { globby } from "globby"; const IGNORED_FILES = new Set([ "docs/api/qiskit-ibm-provider/ibm-provider.md", "docs/api/qiskit/transpiler_builtin_plugins.md", - "docs/api/qiskit/0.44/transpiler_builtin_plugins.md", "docs/api/qiskit-ibm-runtime/ibm-runtime.md", "docs/start/__migration-guide-algorithms.md", "docs/start/__migration-guide-opflow.md", @@ -47,6 +46,12 @@ const main = async (): Promise => { if (IGNORED_FILES.has(file)) { continue; } + + // Ignore all historical API version files. + if (/.*\/[0-9].*\//.test(file)) { + continue; + } + const metadata = await readMetadata(file); if (!isValidMetadata(metadata)) { mdErrors.push(file);