| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3fb5b6d7-e828-b703-2112-e84d607c5b93 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ECF2:2B367:1C16AE:263538:6A4D29D8 |
| html-safe-nonce | 69a5edd2ab494a295c893852cc8779b9d6126a62e28f8f153df7c0a53745b813 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0YyOjJCMzY3OjFDMTZBRToyNjM1Mzg6NkE0RDI5RDgiLCJ2aXNpdG9yX2lkIjoiNDM4NzkwMjY5Nzc4MjQ1NDc0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 12e7453b45a5a92a61555b26ac8cdb577596e5c5f57c9aa122c8b9eeeab4a8c2 |
| hovercard-subject-tag | pull_request:3456136614 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1595/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Hook insertion in add_repo() used hand-rolled precedent/successor logic against a static _HOOK_ORDER list. This replaces it with pipeweld's Adder, which models the same ordering constraints as ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/usethis-python/usethis-python/pull/1595/changes#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1595%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F1595%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 |
| Reload | https://github.com/usethis-python/usethis-python/pull/1595/changes |
| Reload | https://github.com/usethis-python/usethis-python/pull/1595/changes |
| Reload | https://github.com/usethis-python/usethis-python/pull/1595/changes |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1595/changes |
|
usethis-python
| https://github.com/usethis-python |
| usethis-python | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| main | https://github.com/usethis-python/usethis-python/tree/main |
| copilot/better-respect-pre-commit-repos | https://github.com/usethis-python/usethis-python/tree/copilot/better-respect-pre-commit-repos |
|
Conversation
9
| https://github.com/usethis-python/usethis-python/pull/1595 |
|
Commits
11
| https://github.com/usethis-python/usethis-python/pull/1595/commits |
|
Checks
20
| https://github.com/usethis-python/usethis-python/pull/1595/checks |
|
Files changed
| https://github.com/usethis-python/usethis-python/pull/1595/files |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1595/changes |
|
Use pipeweld to insert pre-commit hooks
| https://github.com/usethis-python/usethis-python/pull/1595/changes#top |
|
Show all changes
11 commits
| https://github.com/usethis-python/usethis-python/pull/1595/files |
|
6ea5224
Initial plan
Copilot Mar 27, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/6ea52244a1c155c13b74531b1fc9c4c122d3afce |
|
92bf92a
Use pipeweld Adder to determine pre-commit hook insertion position
Copilot Mar 27, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/92bf92ae0462abdfdb115076a965a75f2a5c4b9e |
|
8e9c262
Fix unreachable code warning and improve docstrings
Copilot Mar 27, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/8e9c262b4490f5bf2e853321f3629973e0dc2278 |
|
23100f8
Merge branch 'main' into copilot/better-respect-pre-commit-repos
nathanjmcdougall Mar 28, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/23100f88d7f15da1fc8e3d50cab8502054f55107 |
|
cb3d129
Move DepGroup import to TYPE_CHECKING block (TC001)
Copilot Mar 28, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/cb3d1292f575bfb110a7c7a88e12499ebe29011f |
|
c643ccd
Move linearization logic from hooks.py into pipeweld Adder via force_…
Copilot Mar 29, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/c643ccd26a899bef90213c32fe1d65dc5fb3ea8c |
|
12fdf66
Add clarifying comment for sort_key fallback in _linearize_component
Copilot Mar 29, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/12fdf66deac0dae23e5db0cda8e61de5c5717375 |
|
fb5d9c0
Move predecessor extraction logic into pipeweld layer as get_predeces…
Copilot Apr 1, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/fb5d9c0a3b114481758c6debfa98feb776ab3075 |
|
0a44c47
Merge branch 'main' into copilot/better-respect-pre-commit-repos
nathanjmcdougall Apr 1, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/0a44c473c00818a6e5c994effeac3d9333ebe081 |
|
f464c4b
Merge branch 'main' into copilot/better-respect-pre-commit-repos
nathanjmcdougall Apr 1, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/f464c4b3c178d9a412782dc1ac1ac90a008c8529 |
|
c734d83
Comply with hooks
nathanjmcdougall Apr 1, 2026
| https://github.com/usethis-python/usethis-python/pull/1595/commits/c734d83d069564c5c285e5767f270464631b0365 |
|
Clear filters
| https://github.com/usethis-python/usethis-python/pull/1595/files |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1595/changes |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1595/changes |
|
AGENTS.md
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9 |
|
functions.txt
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-6705114142ee332330bd7f0684141070919dbb082ecebdd765866a2a2d488f46 |
|
hooks.py
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-264ce1235d8bbe19a3face2b7ac6484c043e8b206204f8711b3918056e8afeba |
|
func.py
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a9fec0a37f88a7dce6d62998d4adfa8161560ae5c83f8e95c15e15c4b3b5c2a3 |
|
test_hooks.py
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-5ab09fc2895bd8dd843846dbc43925cc4ba9a24cebe5b270970a7fd8e5e3e3d0 |
|
test_func.py
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-1df28092c00a992b5fdfb1894c7104ad44818f3ebc8e9e5d387254cf013bf903 |
| AGENTS.md | https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9 |
|
View file
| https://github.com/usethis-python/usethis-python/blob/c734d83d069564c5c285e5767f270464631b0365/AGENTS.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/usethis-python/usethis-python/pull/1595/{{ revealButtonHref }} |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9 |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9 |
| docs/functions.txt | https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-6705114142ee332330bd7f0684141070919dbb082ecebdd765866a2a2d488f46 |
|
View file
| https://github.com/usethis-python/usethis-python/blob/c734d83d069564c5c285e5767f270464631b0365/docs/functions.txt |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/usethis-python/usethis-python/pull/1595/{{ revealButtonHref }} |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-6705114142ee332330bd7f0684141070919dbb082ecebdd765866a2a2d488f46 |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-6705114142ee332330bd7f0684141070919dbb082ecebdd765866a2a2d488f46 |
| src/usethis/_integrations/pre_commit/hooks.py | https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-264ce1235d8bbe19a3face2b7ac6484c043e8b206204f8711b3918056e8afeba |
|
View file
| https://github.com/usethis-python/usethis-python/blob/c734d83d069564c5c285e5767f270464631b0365/src/usethis/_integrations/pre_commit/hooks.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/usethis-python/usethis-python/pull/1595/{{ revealButtonHref }} |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-264ce1235d8bbe19a3face2b7ac6484c043e8b206204f8711b3918056e8afeba |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-264ce1235d8bbe19a3face2b7ac6484c043e8b206204f8711b3918056e8afeba |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-264ce1235d8bbe19a3face2b7ac6484c043e8b206204f8711b3918056e8afeba |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-264ce1235d8bbe19a3face2b7ac6484c043e8b206204f8711b3918056e8afeba |
| src/usethis/_pipeweld/func.py | https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a9fec0a37f88a7dce6d62998d4adfa8161560ae5c83f8e95c15e15c4b3b5c2a3 |
|
View file
| https://github.com/usethis-python/usethis-python/blob/c734d83d069564c5c285e5767f270464631b0365/src/usethis/_pipeweld/func.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/usethis-python/usethis-python/pull/1595/{{ revealButtonHref }} |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a9fec0a37f88a7dce6d62998d4adfa8161560ae5c83f8e95c15e15c4b3b5c2a3 |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a9fec0a37f88a7dce6d62998d4adfa8161560ae5c83f8e95c15e15c4b3b5c2a3 |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a9fec0a37f88a7dce6d62998d4adfa8161560ae5c83f8e95c15e15c4b3b5c2a3 |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-a9fec0a37f88a7dce6d62998d4adfa8161560ae5c83f8e95c15e15c4b3b5c2a3 |
| tests/usethis/_integrations/pre_commit/test_hooks.py | https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-5ab09fc2895bd8dd843846dbc43925cc4ba9a24cebe5b270970a7fd8e5e3e3d0 |
|
View file
| https://github.com/usethis-python/usethis-python/blob/c734d83d069564c5c285e5767f270464631b0365/tests/usethis/_integrations/pre_commit/test_hooks.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/usethis-python/usethis-python/pull/1595/{{ revealButtonHref }} |
|
| https://github.com/usethis-python/usethis-python/pull/1595/changes#diff-5ab09fc2895bd8dd843846dbc43925cc4ba9a24cebe5b270970a7fd8e5e3e3d0 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1595/changes |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1595/changes |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |