René's URL Explorer Experiment


Title: Add `PreCommitConfig.from_system_hook()` to deduplicate backend dispatch in tool specs by Copilot · Pull Request #1606 · usethis-python/usethis-python · GitHub

Open Graph Title: Add `PreCommitConfig.from_system_hook()` to deduplicate backend dispatch in tool specs by Copilot · Pull Request #1606 · usethis-python/usethis-python

X Title: Add `PreCommitConfig.from_system_hook()` to deduplicate backend dispatch in tool specs by Copilot · Pull Request #1606 · usethis-python/usethis-python

Description: Automatically manage Python tooling and configuration: linters, formatters, and more. A CLI for declaratively configuring your Python projects following best practices. - Add `PreCommitConfig.from_system_hook()` to deduplicate backend dispatch in tool specs by Copilot · Pull Request #1606 · usethis-python/usethis-python

Open Graph Description: Three tool specs (ty, deptry, import_linter) each duplicated ~40 lines of identical backend dispatch logic to construct a local system hook PreCommitConfig. This adds a single classmethod that enca...

X Description: Three tool specs (ty, deptry, import_linter) each duplicated ~40 lines of identical backend dispatch logic to construct a local system hook PreCommitConfig. This adds a single classmethod that enca...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9e83d951-5065-966b-adf1-0945887fbf1e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id906C:3A2E82:3D633A:545155:6A4DC604
html-safe-nonce9a20bfdc72dd7555408ad85467a6fec87d51afae6088017025ac13db23096283
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDZDOjNBMkU4MjozRDYzM0E6NTQ1MTU1OjZBNERDNjA0IiwidmlzaXRvcl9pZCI6IjU2MzM5MjAyNTk5MzUwMjg3NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac047120da5e96a11a5c93c72d91f4b775e9354b531cdebdb6777188ee009015b4
hovercard-subject-tagpull_request:3456558804
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/usethis-python/usethis-python/1606/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/67d0bfbd30ffb633f5291909872c1d966e5392f065d65fe942c9db7825f46199/usethis-python/usethis-python/pull/1606
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/67d0bfbd30ffb633f5291909872c1d966e5392f065d65fe942c9db7825f46199/usethis-python/usethis-python/pull/1606
og:image:altThree tool specs (ty, deptry, import_linter) each duplicated ~40 lines of identical backend dispatch logic to construct a local system hook PreCommitConfig. This adds a single classmethod that enca...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCopilot
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1606#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1606
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%2F1606
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=usethis-python%2Fusethis-python
Reloadhttps://github.com/usethis-python/usethis-python/pull/1606
Reloadhttps://github.com/usethis-python/usethis-python/pull/1606
Reloadhttps://github.com/usethis-python/usethis-python/pull/1606
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
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
nathanjmcdougallhttps://github.com/nathanjmcdougall
mainhttps://github.com/usethis-python/usethis-python/tree/main
copilot/functionalize-system-hook-config-methodhttps://github.com/usethis-python/usethis-python/tree/copilot/functionalize-system-hook-config-method
Conversationhttps://github.com/usethis-python/usethis-python/pull/1606
Commits4 (4)https://github.com/usethis-python/usethis-python/pull/1606/commits
Checkshttps://github.com/usethis-python/usethis-python/pull/1606/checks
Files changedhttps://github.com/usethis-python/usethis-python/pull/1606/files
Add PreCommitConfig.from_system_hook() to deduplicate backend dispatch in tool specshttps://github.com/usethis-python/usethis-python/pull/1606#top
nathanjmcdougallhttps://github.com/nathanjmcdougall
mainhttps://github.com/usethis-python/usethis-python/tree/main
copilot/functionalize-system-hook-config-methodhttps://github.com/usethis-python/usethis-python/tree/copilot/functionalize-system-hook-config-method
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Mar 27, 2026https://github.com/usethis-python/usethis-python/pull/1606#issue-4151936332
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
GitHub Mobilehttps://gh.io/cca-mobile-docs
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
https://github.com/apps/copilot-swe-agent
Initial planhttps://github.com/usethis-python/usethis-python/pull/1606/commits/6855986ecae4b7857e589050c263860a67253286
6855986https://github.com/usethis-python/usethis-python/pull/1606/commits/6855986ecae4b7857e589050c263860a67253286
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
nathanjmcdougallhttps://github.com/nathanjmcdougall
Mar 27, 2026https://github.com/usethis-python/usethis-python/pull/1606#event-23969567929
started workhttps://github.com/usethis-python/usethis-python/sessions/aa582356-1027-48c0-b041-ee886b523f95
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 11:54https://github.com/usethis-python/usethis-python/pull/1606#event-23969569902
View session https://github.com/usethis-python/usethis-python/sessions/aa582356-1027-48c0-b041-ee886b523f95
Copilothttps://github.com/apps/copilot-swe-agent
March 27, 2026 12:06https://github.com/usethis-python/usethis-python/pull/1606#commits-pushed-9dfc7fd
https://github.com/apps/copilot-swe-agent
https://github.com/nathanjmcdougall
Add PreCommitConfig.from_system_hook() and refactor tool specs to use ithttps://github.com/usethis-python/usethis-python/pull/1606/commits/9dfc7fdbdab22b8a72e690d0d88160167d0e426f
9dfc7fdhttps://github.com/usethis-python/usethis-python/pull/1606/commits/9dfc7fdbdab22b8a72e690d0d88160167d0e426f
https://github.com/usethis-python/usethis-python/sessions/aa582356-1027-48c0-b041-ee886b523f95https://github.com/usethis-python/usethis-python/sessions/aa582356-1027-48c0-b041-ee886b523f95
https://github.com/apps/copilot-swe-agent
https://github.com/nathanjmcdougall
Fix PLR0913: reduce from_system_hook arguments to 5https://github.com/usethis-python/usethis-python/pull/1606/commits/ce35a9e2b6d363f4e90e632e96199b78d7ca869c
ce35a9ehttps://github.com/usethis-python/usethis-python/pull/1606/commits/ce35a9e2b6d363f4e90e632e96199b78d7ca869c
https://github.com/usethis-python/usethis-python/sessions/aa582356-1027-48c0-b041-ee886b523f95https://github.com/usethis-python/usethis-python/sessions/aa582356-1027-48c0-b041-ee886b523f95
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Mar 27, 2026https://github.com/usethis-python/usethis-python/pull/1606#event-23970021103
finished workhttps://github.com/usethis-python/usethis-python/sessions/aa582356-1027-48c0-b041-ee886b523f95
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 12:11https://github.com/usethis-python/usethis-python/pull/1606#event-23970024761
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 12:11https://github.com/usethis-python/usethis-python/pull/1606#event-23970024873
https://github.com/nathanjmcdougall
nathanjmcdougallhttps://github.com/nathanjmcdougall
Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1606#pullrequestreview-4020947451
View reviewed changes https://github.com/usethis-python/usethis-python/pull/1606/files/ce35a9e2b6d363f4e90e632e96199b78d7ca869c
src/usethis/_tool/pre_commit.pyhttps://github.com/usethis-python/usethis-python/pull/1606/files/ce35a9e2b6d363f4e90e632e96199b78d7ca869c#diff-1a909bc8f54e86f3d1a47a9432e1ebf4a76def0770ac45396d357ef49dba7948
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
started workhttps://github.com/usethis-python/usethis-python/sessions/c33634f9-b1c1-4a84-83f2-5221294a049e
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 12:48https://github.com/usethis-python/usethis-python/pull/1606#event-23971016956
View session https://github.com/usethis-python/usethis-python/sessions/c33634f9-b1c1-4a84-83f2-5221294a049e
https://github.com/apps/copilot-swe-agent
https://github.com/nathanjmcdougall
Hardcode always_run=True, pass_filenames=False; remove require_serialhttps://github.com/usethis-python/usethis-python/pull/1606/commits/a48ac590cb182427a89afc4b66efa84be8179850
a48ac59https://github.com/usethis-python/usethis-python/pull/1606/commits/a48ac590cb182427a89afc4b66efa84be8179850
https://github.com/usethis-python/usethis-python/sessions/c33634f9-b1c1-4a84-83f2-5221294a049ehttps://github.com/usethis-python/usethis-python/sessions/c33634f9-b1c1-4a84-83f2-5221294a049e
https://github.com/nathanjmcdougall
nathanjmcdougallhttps://github.com/nathanjmcdougall
Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1606#ref-issue-4152363160
Agent config: avoid introducing unused arguments to new functions #1621 https://github.com/usethis-python/usethis-python/issues/1621
finished workhttps://github.com/usethis-python/usethis-python/sessions/c33634f9-b1c1-4a84-83f2-5221294a049e
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 12:51https://github.com/usethis-python/usethis-python/pull/1606#event-23971111205
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 12:51https://github.com/usethis-python/usethis-python/pull/1606#event-23971111370
https://github.com/nathanjmcdougall
nathanjmcdougallhttps://github.com/nathanjmcdougall
Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1606#pullrequestreview-4021009213
View reviewed changes https://github.com/usethis-python/usethis-python/pull/1606/files/a48ac590cb182427a89afc4b66efa84be8179850
https://github.com/nathanjmcdougall
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 12:59https://github.com/usethis-python/usethis-python/pull/1606#event-23971343006
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
temporarily deployedhttps://github.com/usethis-python/usethis-python/actions/runs/23647026973/job/68882776801
March 27, 2026 12:59https://github.com/usethis-python/usethis-python/pull/1606#event-23971343788
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Mar 27, 2026https://github.com/usethis-python/usethis-python/pull/1606#issuecomment-4142438397
Codecovhttps://app.codecov.io/gh/usethis-python/usethis-python/pull/1606?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=usethis-python
Let us know!https://github.com/codecov/feedback/issues/255
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
https://github.com/apps/codspeed-hq
codspeed-hqhttps://github.com/apps/codspeed-hq
Mar 27, 2026https://github.com/usethis-python/usethis-python/pull/1606#issuecomment-4142447397
a48ac59https://github.com/usethis-python/usethis-python/commit/a48ac590cb182427a89afc4b66efa84be8179850
ee85fafhttps://github.com/usethis-python/usethis-python/commit/ee85faf14b9221b517d78fe73485f83837491e41
1https://github.com/usethis-python/usethis-python/pull/1606#user-content-fn-unexpected-base-0924cd7ba3b0b97a600b6637b0c25445
https://codspeed.io/usethis-python/usethis-python/branches/copilot%2Ffunctionalize-system-hook-config-method?utm_source=github&utm_medium=comment-v2&utm_content=button
04719d1https://github.com/usethis-python/usethis-python/commit/04719d1b5c0e97b0fcc15fceca7f966b5c39b12e
ee85fafhttps://github.com/usethis-python/usethis-python/commit/ee85faf14b9221b517d78fe73485f83837491e41
https://github.com/usethis-python/usethis-python/pull/1606#user-content-fnref-unexpected-base-0924cd7ba3b0b97a600b6637b0c25445
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
https://github.com/nathanjmcdougall
nathanjmcdougallhttps://github.com/nathanjmcdougall
23296c2https://github.com/usethis-python/usethis-python/commit/23296c2eb11951112b40885d5d12c20ef070fe11
Mar 27, 2026https://github.com/usethis-python/usethis-python/pull/1606#event-23971852688
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
https://github.com/nathanjmcdougall
nathanjmcdougallhttps://github.com/nathanjmcdougall
March 27, 2026 13:16https://github.com/usethis-python/usethis-python/pull/1606#event-23971853346
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Mar 28, 2026 https://github.com/usethis-python/usethis-python/pull/1606#ref-pullrequest-4161950220
Add YAGNI for function parameters to usethis-python-functions skill #1622 https://github.com/usethis-python/usethis-python/pull/1622
https://github.com/nathanjmcdougall
nathanjmcdougallhttps://github.com/nathanjmcdougall
Mar 28, 2026https://github.com/usethis-python/usethis-python/pull/1606#event-24003607144
Functionalize system hook config method #1605 https://github.com/usethis-python/usethis-python/issues/1605
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1606
https://github.com/nathanjmcdougall
nathanjmcdougall https://github.com/nathanjmcdougall
https://github.com/usethis-python/usethis-python/pull/1606/files/a48ac590cb182427a89afc4b66efa84be8179850
https://github.com/nathanjmcdougall
nathanjmcdougall https://github.com/nathanjmcdougall
Copilot code review https://github.com/apps/copilot-swe-agent
Copilot https://github.com/apps/copilot-swe-agent
Functionalize system hook config method https://github.com/usethis-python/usethis-python/issues/1605
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1606
https://github.com/apps/copilot-swe-agent
https://github.com/nathanjmcdougall
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.