From a2ed796aa687f2b002c274d520c18099c92380d7 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Tue, 21 Jan 2025 19:22:13 -0800 Subject: [PATCH] infra: run doc lint on root pyproject change (#29350) --- .github/scripts/check_diff.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/scripts/check_diff.py b/.github/scripts/check_diff.py index 374a5dc239d60..644eff1bcd79f 100644 --- a/.github/scripts/check_diff.py +++ b/.github/scripts/check_diff.py @@ -304,9 +304,8 @@ def _get_configs_for_multi_dirs( f"Unknown lib: {file}. check_diff.py likely needs " "an update for this new library!" ) - elif any(file.startswith(p) for p in ["docs/", "cookbook/"]): - if file.startswith("docs/"): - docs_edited = True + elif file.startswith("docs/") or file in ["pyproject.toml", "poetry.lock"]: # docs or root poetry files + docs_edited = True dirs_to_run["lint"].add(".") dependents = dependents_graph()