From e3c58040dfa4b94bf4c99f4fd1574ce1c5bbe97e Mon Sep 17 00:00:00 2001 From: Yoom Lam Date: Fri, 19 Jan 2024 15:34:59 -0600 Subject: [PATCH] Exclude .venv subfolder for lint-markdown.sh --- bin/lint-markdown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lint-markdown.sh b/bin/lint-markdown.sh index f9ad8290..d70a06e3 100755 --- a/bin/lint-markdown.sh +++ b/bin/lint-markdown.sh @@ -13,6 +13,6 @@ cd "${SCRIPT_DIR}/.." >/dev/null || exit 1 LINK_CHECK_CONFIG=".github/workflows/markdownlint-config.json" -# Recursively find all markdown files (*.md) in the current directory, excluding node_modules subfolders. +# Recursively find all markdown files (*.md) in the current directory, excluding node_modules and .venv subfolders. # Pass them in as args to the lint command using the handy `xargs` command. -find . -name \*.md -not -path "*/node_modules/*" -print0 | xargs -0 -n1 npx markdown-link-check --config $LINK_CHECK_CONFIG +find . -name \*.md -not -path "*/node_modules/*" -not -path "*/.venv/*" -print0 | xargs -0 -n1 npx markdown-link-check --config $LINK_CHECK_CONFIG