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

This commit is contained in:
Erick Friis 2025-01-21 19:22:13 -08:00 committed by GitHub
parent de1fc4811d
commit a2ed796aa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()