diff --git a/.github/scripts/check_diff.py b/.github/scripts/check_diff.py index 374a5dc239d..644eff1bcd7 100644 --- a/.github/scripts/check_diff.py +++ b/.github/scripts/check_diff.py @@ -304,9 +304,8 @@ if __name__ == "__main__": 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()