René's URL Explorer Experiment


Title: Use `ALL_TOOLS` as single source of truth for canonical tool ordering by Copilot · Pull Request #1793 · usethis-python/usethis-python · GitHub

Open Graph Title: Use `ALL_TOOLS` as single source of truth for canonical tool ordering by Copilot · Pull Request #1793 · usethis-python/usethis-python

X Title: Use `ALL_TOOLS` as single source of truth for canonical tool ordering by Copilot · Pull Request #1793 · usethis-python/usethis-python

Description: Tool ordering was defined redundantly in three separate places (ALL_TOOLS, OTHER_TOOLS in pyproject_toml.py, ALL_TOOL_COMMANDS in tool.py), allowing them to drift. ALL_TOOL_COMMANDS already had a bug: pyproject.toml appeared before pyproject-fmt, contradicting alphabetical order in ALL_TOOLS. Changes _tool/impl/spec/all_.py (new) – introduces ALL_TOOL_SPECS, a canonical list of all ToolSpec instances in alphabetical order, mirroring ALL_TOOLS but at the spec layer. This avoids a circular import: _tool.impl.base can import from _tool.impl.spec, but not from _tool.all_. pyproject_toml.py – replaces the duplicated _OTHER_TOOLS list with a direct use of ALL_TOOL_SPECS from the new spec registry, filtering out PyprojectTOMLToolSpec inline and using is_likely_used(tool_spec) in place of tool.is_used(). All sibling base-Tool imports are removed. .importlinter – adds all_ as the top layer in the tool_impl_spec contract to accommodate the new module. tool.py – replaces the hardcoded ALL_TOOL_COMMANDS with a derived computation: def _get_all_tool_commands() -> list[str]: from usethis._tool.all_ import ALL_TOOLS return [tool.name.lower().replace(" ", "-") for tool in ALL_TOOLS] ALL_TOOL_COMMANDS: list[str] = _get_all_tool_commands() This fixes the pyproject.toml/pyproject-fmt ordering bug as a side effect. all_.py – OTHER_TOOLS is removed entirely. It had no remaining consumers in source code after the ALL_TOOL_SPECS refactor, and its only test was a circular self-validating assertion. Tests – test_tool_matches_command upgraded from set equality to list equality (enforces order); TestAllToolSpecs.test_in_sync_with_all_tools guards that ALL_TOOL_SPECS stays in sync with ALL_TOOLS.

Open Graph Description: Tool ordering was defined redundantly in three separate places (ALL_TOOLS, OTHER_TOOLS in pyproject_toml.py, ALL_TOOL_COMMANDS in tool.py), allowing them to drift. ALL_TOOL_COMMANDS already had a b...

X Description: Tool ordering was defined redundantly in three separate places (ALL_TOOLS, OTHER_TOOLS in pyproject_toml.py, ALL_TOOL_COMMANDS in tool.py), allowing them to drift. ALL_TOOL_COMMANDS already had a b...

Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1793

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a1668a8d-b272-fa84-4e29-95c76f1d23a3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE396:78281:1BCF281:28581FB:6A4CFB8B
html-safe-nonce4509923bf01d8c85e6fca5bd9752ede3e8b42f0a248455180ddee4d4a2645862
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzk2Ojc4MjgxOjFCQ0YyODE6Mjg1ODFGQjo2QTRDRkI4QiIsInZpc2l0b3JfaWQiOiI0OTkyMjkxNjc1NjYyNTcwMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3ef8c78a271824d0c505094f69c21da08abd2cb6b1b6814519da4e4aa7b54992
hovercard-subject-tagpull_request:3487896357
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1793/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altTool ordering was defined redundantly in three separate places (ALL_TOOLS, OTHER_TOOLS in pyproject_toml.py, ALL_TOOL_COMMANDS in tool.py), allowing them to drift. ALL_TOOL_COMMANDS already had a b...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git
octolytics-dimension-user_id216362695
octolytics-dimension-user_loginusethis-python
octolytics-dimension-repository_id842189705
octolytics-dimension-repository_nwousethis-python/usethis-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id842189705
octolytics-dimension-repository_network_root_nwousethis-python/usethis-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8307e9ba117a26e92a64fb1daf085d795a6552ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1793/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1793%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1793%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=usethis-python%2Fusethis-python
Reloadhttps://github.com/usethis-python/usethis-python/pull/1793/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1793/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1793/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1793/files
usethis-python https://github.com/usethis-python
usethis-pythonhttps://github.com/usethis-python/usethis-python
Notifications https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Fork 5 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Star 19 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Code https://github.com/usethis-python/usethis-python
Issues 163 https://github.com/usethis-python/usethis-python/issues
Pull requests 4 https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality 0 https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Code https://github.com/usethis-python/usethis-python
Issues https://github.com/usethis-python/usethis-python/issues
Pull requests https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
nathanjmcdougallhttps://github.com/nathanjmcdougall
mainhttps://github.com/usethis-python/usethis-python/tree/main
copilot/consider-using-all-tools-for-orderinghttps://github.com/usethis-python/usethis-python/tree/copilot/consider-using-all-tools-for-ordering
Conversation 8 https://github.com/usethis-python/usethis-python/pull/1793
Commits 6 https://github.com/usethis-python/usethis-python/pull/1793/commits
Checks 20 https://github.com/usethis-python/usethis-python/pull/1793/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1793/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1793/files
Use ALL_TOOLS as single source of truth for canonical tool ordering https://github.com/usethis-python/usethis-python/pull/1793/files#top
Show all changes 6 commits https://github.com/usethis-python/usethis-python/pull/1793/files
f160261 Initial plan Copilot Apr 4, 2026 https://github.com/usethis-python/usethis-python/pull/1793/commits/f160261e280b22802f03b8274d3e657a2bf01261
3a99312 Use ALL_TOOLS as single source of truth for canonical tool ordering Copilot Apr 4, 2026 https://github.com/usethis-python/usethis-python/pull/1793/commits/3a99312ef069b4291763dd5c8950b7631c11bace
aaa8541 Use ALL_TOOL_SPECS from _tool.impl.spec to avoid _OTHER_TOOLS duplica… Copilot Apr 4, 2026 https://github.com/usethis-python/usethis-python/pull/1793/commits/aaa85414c0d97b75ee0e0d9b314aaefd70865751
db86827 Remove OTHER_TOOLS from all_.py — no longer needed after ALL_TOOL_SPE… Copilot Apr 4, 2026 https://github.com/usethis-python/usethis-python/pull/1793/commits/db868277a93b8ef0a73f6ca7d528047bd20425bb
538326f Merge branch 'main' into copilot/consider-using-all-tools-for-ordering nathanjmcdougall Apr 4, 2026 https://github.com/usethis-python/usethis-python/pull/1793/commits/538326ff2fd859bfdce6d7ba3b3254f5afed4ce4
e50cb6e Merge branch 'main' into copilot/consider-using-all-tools-for-ordering nathanjmcdougall Apr 4, 2026 https://github.com/usethis-python/usethis-python/pull/1793/commits/e50cb6e90ed925d30ceb8b5374f45809667d0213
Clear filters https://github.com/usethis-python/usethis-python/pull/1793/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1793/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1793/files
.importlinter https://github.com/usethis-python/usethis-python/pull/1793/files#diff-ba59e14253ea8411c0f2b62487cba8b57d8439ee0603b439210a584c10402e0e
AGENTS.md https://github.com/usethis-python/usethis-python/pull/1793/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
module-tree.txt https://github.com/usethis-python/usethis-python/pull/1793/files#diff-23247f9f520fcb1dbbf1ffde0ee9eba8f64e33b177de61811c82d88bf88718e9
all_.py https://github.com/usethis-python/usethis-python/pull/1793/files#diff-585fe6a3590d9d4ef704fc9cb558cd850f64bf02355a49cf57f95c548ac8a3e4
pyproject_toml.py https://github.com/usethis-python/usethis-python/pull/1793/files#diff-a5a4c0d92fde324e9063db93969cfe686b26a120d94c1cd5c89418204bf1346e
all_.py https://github.com/usethis-python/usethis-python/pull/1793/files#diff-e85bfd76bf42cbf246a056bb940c691fcda303d6d485a3ab4aafb9879d0d040a
tool.py https://github.com/usethis-python/usethis-python/pull/1793/files#diff-f3d7763827df062dceddbd3963400d7cf4249d2e14fed6daf01c28e758820e46
test_pyproject_toml.py https://github.com/usethis-python/usethis-python/pull/1793/files#diff-90f90d83408174947fa27781bb6b28a977b993c83cafdb668529c255a8860f64
test_tool.py https://github.com/usethis-python/usethis-python/pull/1793/files#diff-6b4fbb7094b7f214f3af0799e81794307247858e3ec6425ff81cda616f38b171
.importlinterhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-ba59e14253ea8411c0f2b62487cba8b57d8439ee0603b439210a584c10402e0e
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/.importlinter
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-ba59e14253ea8411c0f2b62487cba8b57d8439ee0603b439210a584c10402e0e
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-ba59e14253ea8411c0f2b62487cba8b57d8439ee0603b439210a584c10402e0e
AGENTS.mdhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/AGENTS.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
docs/module-tree.txthttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-23247f9f520fcb1dbbf1ffde0ee9eba8f64e33b177de61811c82d88bf88718e9
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/docs/module-tree.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-23247f9f520fcb1dbbf1ffde0ee9eba8f64e33b177de61811c82d88bf88718e9
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-23247f9f520fcb1dbbf1ffde0ee9eba8f64e33b177de61811c82d88bf88718e9
src/usethis/_tool/all_.pyhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-585fe6a3590d9d4ef704fc9cb558cd850f64bf02355a49cf57f95c548ac8a3e4
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/src/usethis/_tool/all_.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-585fe6a3590d9d4ef704fc9cb558cd850f64bf02355a49cf57f95c548ac8a3e4
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-585fe6a3590d9d4ef704fc9cb558cd850f64bf02355a49cf57f95c548ac8a3e4
src/usethis/_tool/impl/base/pyproject_toml.pyhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-a5a4c0d92fde324e9063db93969cfe686b26a120d94c1cd5c89418204bf1346e
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/src/usethis/_tool/impl/base/pyproject_toml.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-a5a4c0d92fde324e9063db93969cfe686b26a120d94c1cd5c89418204bf1346e
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-a5a4c0d92fde324e9063db93969cfe686b26a120d94c1cd5c89418204bf1346e
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-a5a4c0d92fde324e9063db93969cfe686b26a120d94c1cd5c89418204bf1346e
src/usethis/_tool/impl/spec/all_.pyhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-e85bfd76bf42cbf246a056bb940c691fcda303d6d485a3ab4aafb9879d0d040a
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/src/usethis/_tool/impl/spec/all_.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
src/usethis/_ui/interface/tool.pyhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-f3d7763827df062dceddbd3963400d7cf4249d2e14fed6daf01c28e758820e46
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/src/usethis/_ui/interface/tool.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-f3d7763827df062dceddbd3963400d7cf4249d2e14fed6daf01c28e758820e46
tests/usethis/_tool/impl/base/test_pyproject_toml.pyhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-90f90d83408174947fa27781bb6b28a977b993c83cafdb668529c255a8860f64
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/tests/usethis/_tool/impl/base/test_pyproject_toml.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-90f90d83408174947fa27781bb6b28a977b993c83cafdb668529c255a8860f64
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-90f90d83408174947fa27781bb6b28a977b993c83cafdb668529c255a8860f64
tests/usethis/_ui/interface/test_tool.pyhttps://github.com/usethis-python/usethis-python/pull/1793/files#diff-6b4fbb7094b7f214f3af0799e81794307247858e3ec6425ff81cda616f38b171
View file https://github.com/usethis-python/usethis-python/blob/e50cb6e90ed925d30ceb8b5374f45809667d0213/tests/usethis/_ui/interface/test_tool.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1793/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-6b4fbb7094b7f214f3af0799e81794307247858e3ec6425ff81cda616f38b171
https://github.com/usethis-python/usethis-python/pull/1793/files#diff-6b4fbb7094b7f214f3af0799e81794307247858e3ec6425ff81cda616f38b171
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1793/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.