René's URL Explorer Experiment


Title: Add tests for Ruff dev deps not removed when using pre-commit by Copilot · Pull Request #1464 · usethis-python/usethis-python · GitHub

Open Graph Title: Add tests for Ruff dev deps not removed when using pre-commit by Copilot · Pull Request #1464 · usethis-python/usethis-python

X Title: Add tests for Ruff dev deps not removed when using pre-commit by Copilot · Pull Request #1464 · usethis-python/usethis-python

Description: The code fix to stop removing dev deps during pre-commit migration (commit 3a06c95) only added test coverage for codespell and pyproject-fmt. Ruff was explicitly called out as affected but had no test coverage. Tests added TestPreCommit.TestAdd.test_ruff_used — Ruff dev dep persists when use_pre_commit() is called after use_ruff() TestPreCommit.TestMigration.test_ruff_deps_not_removed_when_migrating_to_pre_commit — Ruff dep survives migration to pre-commit TestPreCommit.TestMigration.test_ruff_deps_not_added_when_migrating_from_pre_commit — Ruff dep not duplicated when removing pre-commit TestRuff.TestPrecommitIntegration.test_use_first / test_use_after — Extended existing hook-only assertions to also verify dev dep presence in both orderings Original prompt This section details on the original issue you should resolve Don't remove dev deps just because they're also configured as pre-commit hooks For example, currently Ruff is being removed as a dev dep when running usethis tool pre-commit. When using uv and hence sync-with-uv, there's absolutely no need. If using a None backend, we don't touch dev deps anyway. For a future backend, hopefully we'll have another sync tool. Make sure to test this case. Comments on the Issue (you are @copilot in this section) @nathanjmcdougall Related to #1014 Fixes #1126 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Open Graph Description: The code fix to stop removing dev deps during pre-commit migration (commit 3a06c95) only added test coverage for codespell and pyproject-fmt. Ruff was explicitly called out as affected but had no t...

X Description: The code fix to stop removing dev deps during pre-commit migration (commit 3a06c95) only added test coverage for codespell and pyproject-fmt. Ruff was explicitly called out as affected but had no t...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6306450e-931c-cc5e-2353-8dd74b716779
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE2CC:12F35E:600CB2:83C047:6A4F377E
html-safe-nonce127a616bd7bf5a4511e458b327df82759ec53940a9f82d72fc2cf013e07a57a1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkNDOjEyRjM1RTo2MDBDQjI6ODNDMDQ3OjZBNEYzNzdFIiwidmlzaXRvcl9pZCI6IjU5NjY2OTA0MDkwMTkwMjkzNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8321ec01cd80dacf993daa8d9f31e1b1ae9467a52b3af7a6bec869c0491f667c
hovercard-subject-tagpull_request:3431156212
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/1464/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:altThe code fix to stop removing dev deps during pre-commit migration (commit 3a06c95) only added test coverage for codespell and pyproject-fmt. Ruff was explicitly called out as affected but had no t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1464/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%2F1464%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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F1464%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/1464/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1464/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1464/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1464/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/fix-dev-dep-removal-issuehttps://github.com/usethis-python/usethis-python/tree/copilot/fix-dev-dep-removal-issue
Conversation 2 https://github.com/usethis-python/usethis-python/pull/1464
Commits 3 https://github.com/usethis-python/usethis-python/pull/1464/commits
Checks 20 https://github.com/usethis-python/usethis-python/pull/1464/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1464/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1464/files
Add tests for Ruff dev deps not removed when using pre-commit https://github.com/usethis-python/usethis-python/pull/1464/files#top
Show all changes 3 commits https://github.com/usethis-python/usethis-python/pull/1464/files
16ea9fb Initial plan Copilot Mar 22, 2026 https://github.com/usethis-python/usethis-python/pull/1464/commits/16ea9fbd922576fa95b50527406d40343fe8d164
6eef870 Add tests verifying Ruff dev deps are not removed when using pre-comm… Copilot Mar 22, 2026 https://github.com/usethis-python/usethis-python/pull/1464/commits/6eef87044dd7847b55edfe0b4beb050b86686811
2cfa912 Apply formatter fixes to test file Copilot Mar 22, 2026 https://github.com/usethis-python/usethis-python/pull/1464/commits/2cfa912fee60b4d725c5e4147f3dba5fbcacc2a2
Clear filters https://github.com/usethis-python/usethis-python/pull/1464/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1464/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1464/files
tests/usethis/_core/test_core_tool.pyhttps://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
View file https://github.com/usethis-python/usethis-python/blob/2cfa912fee60b4d725c5e4147f3dba5fbcacc2a2/tests/usethis/_core/test_core_tool.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1464/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
https://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
https://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
https://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
https://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
https://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
https://github.com/usethis-python/usethis-python/pull/1464/files#diff-ebc73c512a65745bdcc2bd242acbe30cee0360d3fd14694b4cd01f64e3520ff7
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1464/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.