Skip to content

Commit

Permalink
infra: run doc lint on root pyproject change (#29350)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Jan 22, 2025
1 parent de1fc48 commit a2ed796
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a2ed796

Please sign in to comment.