Skip to content

The agent engineering platform.

infra: run doc lint on root pyproject change (#29350)

Erick Friisa2ed796aa687
diff --git a/.github/scripts/check_diff.py b/.github/scripts/check_diff.py
index 374a5dc239..644eff1bcd 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()