René's URL Explorer Experiment


Title: Move `config_spec` into `ToolSpec` by Copilot · Pull Request #1430 · usethis-python/usethis-python · GitHub

Open Graph Title: Move `config_spec` into `ToolSpec` by Copilot · Pull Request #1430 · usethis-python/usethis-python

X Title: Move `config_spec` into `ToolSpec` by Copilot · Pull Request #1430 · usethis-python/usethis-python

Description: config_spec() lived on Tool, forcing is_likely_used() to take a separate ConfigSpec parameter alongside ToolSpec. Moving it to ToolSpec lets is_likely_used work with just a ToolSpec. Protocol changes Added config_spec() to ToolSpec (default: ConfigSpec.empty()) Moved get_active_config_file_managers and _get_active_config_file_managers_from_resolution from Tool to ToolSpec Removed config_spec() from Tool Simplified is_likely_used(tool_spec: ToolSpec) — dropped the config_spec parameter, now calls tool_spec.config_spec() internally # Before def is_likely_used(tool_spec: ToolSpec, config_spec: ConfigSpec) -> bool: ... # After def is_likely_used(tool_spec: ToolSpec) -> bool: ... All implementations moved from impl/base/ → impl/spec/ All config_spec() implementations now live at the spec layer: Codespell, Coverage.py, Deptry, MkDocs, Pyproject-fmt, Pytest Ruff — __init__ (with linter_detection / formatter_detection attrs) and config_spec() moved to RuffToolSpec Import Linter — config_spec() and helpers (_are_active_ini_contracts, _is_root_package_singular) moved to ImportLinterToolSpec Original prompt This section details on the original issue you should resolve Move config_spec into ToolSpec Toward #1311. This will also mean we can refactor is_likely_used. Comments on the Issue (you are @copilot in this section) Fixes #1429 📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Open Graph Description: config_spec() lived on Tool, forcing is_likely_used() to take a separate ConfigSpec parameter alongside ToolSpec. Moving it to ToolSpec lets is_likely_used work with just a ToolSpec. Protocol chang...

X Description: config_spec() lived on Tool, forcing is_likely_used() to take a separate ConfigSpec parameter alongside ToolSpec. Moving it to ToolSpec lets is_likely_used work with just a ToolSpec. Protocol chang...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a51a8171-b9a0-c698-208b-fde1322c144a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBD2A:4D576:EC2330:14D7148:6A4CAEF0
html-safe-nonce379d8494869b3693f253d468e6c35bbcadecf280bbe8127a41194b5dd9498157
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDJBOjRENTc2OkVDMjMzMDoxNEQ3MTQ4OjZBNENBRUYwIiwidmlzaXRvcl9pZCI6IjM4MjAzOTIxMDMyNzMwODI2MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7fe14da91b62282b792597920af729599b751cb64511e71a17b6eaf8e7bed851
hovercard-subject-tagpull_request:3423061692
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/1430/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:altconfig_spec() lived on Tool, forcing is_likely_used() to take a separate ConfigSpec parameter alongside ToolSpec. Moving it to ToolSpec lets is_likely_used work with just a ToolSpec. Protocol chang...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
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
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1430/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%2F1430%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%2F1430%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/1430/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1430/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1430/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1430/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/move-config-spec-into-toolspechttps://github.com/usethis-python/usethis-python/tree/copilot/move-config-spec-into-toolspec
Conversation 4 https://github.com/usethis-python/usethis-python/pull/1430
Commits 5 https://github.com/usethis-python/usethis-python/pull/1430/commits
Checks 19 https://github.com/usethis-python/usethis-python/pull/1430/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1430/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1430/files
Move config_spec into ToolSpec https://github.com/usethis-python/usethis-python/pull/1430/files#top
Show all changes 5 commits https://github.com/usethis-python/usethis-python/pull/1430/files
73ea9d6 Initial plan Copilot Mar 20, 2026 https://github.com/usethis-python/usethis-python/pull/1430/commits/73ea9d695fd2f1c68e2b38276df27b94bb3aeefd
280ac04 Move config_spec from Tool to ToolSpec and refactor is_likely_used Copilot Mar 20, 2026 https://github.com/usethis-python/usethis-python/pull/1430/commits/280ac04bbdcf199c7d264dc2f69c092e8d0298d2
9a580f9 Apply formatting fixes from static checks Copilot Mar 20, 2026 https://github.com/usethis-python/usethis-python/pull/1430/commits/9a580f9880efb2bd098c1f59445eca7f01a7e978
b247646 Move __init__, config_spec, get_active_config_file_managers to ToolSpec Copilot Mar 20, 2026 https://github.com/usethis-python/usethis-python/pull/1430/commits/b247646836f82acb20d7d8a4e7d7ba5660adf092
f0b26bf Merge branch 'main' into copilot/move-config-spec-into-toolspec nathanjmcdougall Mar 20, 2026 https://github.com/usethis-python/usethis-python/pull/1430/commits/f0b26bf6aaee645d5167c23cb472fc26bd289cd3
Clear filters https://github.com/usethis-python/usethis-python/pull/1430/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1430/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1430/files
base.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
heuristics.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-9dfbc60f57bffeadbc4177fb381def8aefa90ed25a564584465dc3cdf5132bac
codespell.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-2c508995bfb9de0ede70c5e43e113b8b0d4683ee30b8a36e9235ca6028bd6f3b
coverage_py.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-71c45ebe1da4d81e2b771fc8db25e0701e17b1bd012c2c9045330c9fada012cd
deptry.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-be005d8a688a12ad7d84e9d6feb7a4e401a76fad1c47b6cf9d80d537797bda65
import_linter.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-6ca11bc8f278f4995bf365615eb576f64691764451781845c2d4b427be888a3c
mkdocs.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-0e02d4ab7cc8a05a6bf3c8ca0729756c3f489d619a9b5c3996d91d5d63d6a9e8
pyproject_fmt.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-d72e733ecca831b754150d974e21a436ae3c86b63b86ae3ea9cc94209f8b2a13
pytest.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-09b48febb397590425581a9d904aaf9cac2fba2a1144b5038989209b47a4c45a
ruff.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-1207f8995d85f8d91f298b914c3395c8b8b8e35075e3937f007c3dda4c5180b5
codespell.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-ed73f0c95021a8313c3623115d8b8fa6bc8577c010ed2b6d9e87a2ed8cf2ac9e
coverage_py.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-7995205d5609b5236348f760417b536539fe8d849c13cf8e70f0c7dfbb954ef6
deptry.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-a45bc47a5a667207144f963aa8ca348d76e45d2bcb40cf3d6840793e0774e6d0
import_linter.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-6ae3109858d54e24b0823c4ea22e36b476a7c96fe808145d4b0e0c753c577032
mkdocs.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-b712ea311fa1e8c17ca0e553b9926e1365428ef95f57f61872fe844fb0c5e02f
pyproject_fmt.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-460517a7eb293c349b78e7fb8a08c56cb398b264ab33d60203636422ca7fbd35
pytest.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-3b22f93fd1fdd8d1d78ccf452544a92c25dacb8eda68f0e38b6b94e1d9e43eb6
ruff.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-43f848038b3175f428e92bde90aa7646d31c63c81a352d457278007ca2bca5ba
spec.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-d39cf090d170c648ace9507eac73013e9244ba0cd851a498109b5058c84e7616
test_heuristics.py https://github.com/usethis-python/usethis-python/pull/1430/files#diff-b06cc8c50190cb2167852a3fd5f6c39cf05dd080fc5fe14bb6a22ff4c25e122f
src/usethis/_tool/base.pyhttps://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
View file https://github.com/usethis-python/usethis-python/blob/f0b26bf6aaee645d5167c23cb472fc26bd289cd3/src/usethis/_tool/base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1430/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-5d6bc423e5b313d5aeba5e063fcde573c808a3df7738ed68bb94d82b92a005d7
src/usethis/_tool/heuristics.pyhttps://github.com/usethis-python/usethis-python/pull/1430/files#diff-9dfbc60f57bffeadbc4177fb381def8aefa90ed25a564584465dc3cdf5132bac
View file https://github.com/usethis-python/usethis-python/blob/f0b26bf6aaee645d5167c23cb472fc26bd289cd3/src/usethis/_tool/heuristics.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1430/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-9dfbc60f57bffeadbc4177fb381def8aefa90ed25a564584465dc3cdf5132bac
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-9dfbc60f57bffeadbc4177fb381def8aefa90ed25a564584465dc3cdf5132bac
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-9dfbc60f57bffeadbc4177fb381def8aefa90ed25a564584465dc3cdf5132bac
https://github.com/usethis-python/usethis-python/pull/1430/files#diff-9dfbc60f57bffeadbc4177fb381def8aefa90ed25a564584465dc3cdf5132bac
src/usethis/_tool/impl/base/codespell.pyhttps://github.com/usethis-python/usethis-python/pull/1430/files#diff-2c508995bfb9de0ede70c5e43e113b8b0d4683ee30b8a36e9235ca6028bd6f3b
View file https://github.com/usethis-python/usethis-python/blob/f0b26bf6aaee645d5167c23cb472fc26bd289cd3/src/usethis/_tool/impl/base/codespell.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1430/{{ revealButtonHref }}
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1430/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1430/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.