ci(*:skip): Move all Python scripts under dev into devtool#6655
Merged
danieljanes merged 11 commits intomainfrom Mar 2, 2026
Merged
ci(*:skip): Move all Python scripts under dev into devtool#6655danieljanes merged 11 commits intomainfrom
danieljanes merged 11 commits intomainfrom
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates developer Python utilities into the dev/devtool package and updates docs and CI workflows to invoke these tools via python -m devtool.<module>.
Changes:
- Update various docs/workflows to use
python -m devtool.*(andpython -m poetry ...) instead of calling scripts by path. - Refactor devtool scripts to use repo-root-relative paths (
Path(__file__).resolve().parents[2]) and improve file handling (e.g., UTF-8 reads/writes). - Adjust CI workflows (path filters, dependency install steps, wheel install syntax) to align with the new tooling and packaging.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| framework/docs/source/how-to-upgrade-to-flower-1.0.rst | Updates Poetry upgrade instructions and command invocation. |
| framework/docs/source/contributor-how-to-write-documentation.rst | Updates local doc build commands to use python -m poetry. |
| framework/docs/source/contributor-how-to-set-up-a-virtual-env.rst | Minor wording update around Poetry virtualenv setup. |
| framework/docs/source/contributor-how-to-install-development-versions.rst | Updates Poetry reinstall instructions and command invocation. |
| dev/devtool/update_python.py | Adjusts internal glob patterns to match new dev/devtool script locations. |
| dev/devtool/update_html_themes.py | Makes script repo-root aware and uses explicit UTF-8 when reading YAML. |
| dev/devtool/check_pr_title.py | Refactors into functions and enables python -m devtool.check_pr_title execution. |
| dev/devtool/build_example_docs.py | Switches to Path for repo-root/index handling and uses UTF-8 for output. |
| dev/changelog_config.toml | Updates comment to reflect new devtool.check_pr_title module usage. |
| .github/workflows/repo-check-pr-title.yml | Switches title check to module invocation with PYTHONPATH=dev. |
| .github/workflows/framework-test.yml | Expands change detection to include dev/devtool/**; renames a step. |
| .github/workflows/framework-e2e.yml | Installs wheel as flwr[simulation] @ URL and tweaks dependency install scope. |
| .github/workflows/framework-docs-update-translations.yml | Removes explicit pip install sphinx==... line during install. |
| .github/workflows/datasets-test.yml | Expands workflow path triggers to include dev/devtool/**. |
| .github/workflows/build-deploy-non-framework-docs.yml | Switches dev scripts to module invocation via devtool.*. |
| .devcontainer/post-create.sh | Changes Poetry install flags to --all-extras. |
Comments suppressed due to low confidence (1)
dev/devtool/build_example_docs.py:24
- There is still a repo script (
intelligence/dev/build-docs.sh) invoking the old pathpython3 dev/build-example-docs.py. Since this PR migrates/renames that script todev/devtool/build_example_docs.py(and CI now usespython -m devtool.build_example_docs), that remaining caller will break and should be updated to the new module invocation (or to the new file path).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
panh99
reviewed
Mar 2, 2026
panh99
reviewed
Mar 2, 2026
panh99
reviewed
Mar 2, 2026
panh99
approved these changes
Mar 2, 2026
tanertopal
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge after #6654
This PR moves all Python scripts under
devintodevtool