René's URL Explorer Experiment


Title: Fix TOML comment stripping in extend_list and remove_from_list by Copilot · Pull Request #1591 · usethis-python/usethis-python · GitHub

Open Graph Title: Fix TOML comment stripping in extend_list and remove_from_list by Copilot · Pull Request #1591 · usethis-python/usethis-python

X Title: Fix TOML comment stripping in extend_list and remove_from_list by Copilot · Pull Request #1591 · usethis-python/usethis-python

Description: Investigate the root cause: extend_list and remove_from_list in _file/toml/io_.py replace tomlkit Array objects with plain Python lists, stripping comments and formatting Fix extend_list: use in-place insert() instead of d + list(values) to preserve tomlkit Array metadata Fix remove_from_list: use in-place remove() instead of list comprehension to preserve tomlkit Array metadata Add tests for comment preservation in both extend_list and remove_from_list Add a test for the specific usethis rule --ignore ERA001 scenario with ruff.toml comments Fix add_author to unwrap tomlkit Array items to plain dicts for the delete/re-set dance Update test_append expectation for cosmetic whitespace change (one fewer leading newline) Fix ty type error: use Mapping isinstance check to narrow item type before dict() conversion Fix AGENTS.md table alignment (lines 212-213 trailing pipe misalignment) Run affected tests to verify (all pass) Run static checks: basedpyright (0 errors), ty (all checks passed), ruff (all pass) ⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Open Graph Description: Investigate the root cause: extend_list and remove_from_list in _file/toml/io_.py replace tomlkit Array objects with plain Python lists, stripping comments and formatting Fix extend_list: use in-p...

X Description: Investigate the root cause: extend_list and remove_from_list in _file/toml/io_.py replace tomlkit Array objects with plain Python lists, stripping comments and formatting Fix extend_list: use in-p...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:18c9be31-e46b-7657-a51c-ec55c253e70a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE6FC:379A70:E4EAE4:1424DFE:6A4CAEF5
html-safe-nonce6b9d6c5bb6ea09c9400747e1371a7bb90dc7b864dd43442c5d07d4c88001e669
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkZDOjM3OUE3MDpFNEVBRTQ6MTQyNERGRTo2QTRDQUVGNSIsInZpc2l0b3JfaWQiOiI3NTE3NjY2NjYwODI1NDc2ODUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaceb0d0bb8993c451f1b2f72f193eb6b22b8b06017c272dfcb8c5dc39df604f8ff
hovercard-subject-tagpull_request:3456087212
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/1591/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:altInvestigate the root cause: extend_list and remove_from_list in _file/toml/io_.py replace tomlkit Array objects with plain Python lists, stripping comments and formatting Fix extend_list: use in-p...
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/1591/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%2F1591%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%2F1591%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/1591/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1591/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1591/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1591/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-ruff-toml-comments-issuehttps://github.com/usethis-python/usethis-python/tree/copilot/fix-ruff-toml-comments-issue
Conversation 6 https://github.com/usethis-python/usethis-python/pull/1591
Commits 7 https://github.com/usethis-python/usethis-python/pull/1591/commits
Checks 20 https://github.com/usethis-python/usethis-python/pull/1591/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1591/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1591/files
Fix TOML comment stripping in extend_list and remove_from_list https://github.com/usethis-python/usethis-python/pull/1591/files#top
Show all changes 7 commits https://github.com/usethis-python/usethis-python/pull/1591/files
82bd8f6 Initial plan Copilot Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1591/commits/82bd8f6481468df8f1522ee4cb2c1bd80af64650
b2d9c96 Fix TOML comment stripping in extend_list and remove_from_list Copilot Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1591/commits/b2d9c96d4441b97ca7708b7da0716d0bcef83e3a
7e66ab2 Use insert() instead of append() to satisfy basedpyright type checker Copilot Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1591/commits/7e66ab2c0e0e610d46d9a73f05a0e10dceb7ed10
f00ffcb Fix TestAddAuthor.test_append: unwrap tomlkit Array to plain dicts in… Copilot Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1591/commits/f00ffcbda81a7ad6a8bdf3fa1951a24ecc033b11
4bac258 Merge branch 'main' into copilot/fix-ruff-toml-comments-issue nathanjmcdougall Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1591/commits/4bac25819afe9307ca6b90b48a1d74db392bb838
282b11a Fix static check failures: ty type error in author.py and AGENTS.md t… Copilot Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1591/commits/282b11a2b25c5bf077274661a4ee02d3425e925c
f8d45fb Merge branch 'main' into copilot/fix-ruff-toml-comments-issue nathanjmcdougall Mar 27, 2026 https://github.com/usethis-python/usethis-python/pull/1591/commits/f8d45fb3b9ca52a4c184963b8e3017fcaf51e5b8
Clear filters https://github.com/usethis-python/usethis-python/pull/1591/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1591/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1591/files
author.py https://github.com/usethis-python/usethis-python/pull/1591/files#diff-e12b70be9e342e0dac9c4599056834f09947faa153c382ca08bb49aec9f270b3
io_.py https://github.com/usethis-python/usethis-python/pull/1591/files#diff-9bfab9d3e8c63b620c56aa0225738ad4750151548c6297f6c665264cb085ce14
test_author.py https://github.com/usethis-python/usethis-python/pull/1591/files#diff-c0bc731509a16add33b6a2cbae76accdee5b35b7cc04ac1dfd0f77c96038e8f7
test_toml_io_.py https://github.com/usethis-python/usethis-python/pull/1591/files#diff-10de5022c4c7af6dd2fe5fc98fdf0bdae7e32985e8619482768783dd1a95e51d
test_ruff.py https://github.com/usethis-python/usethis-python/pull/1591/files#diff-b2f7ed409e59821eda2a702039dbd41d3cdf664c804e1e392db2b28031c4b391
src/usethis/_core/author.pyhttps://github.com/usethis-python/usethis-python/pull/1591/files#diff-e12b70be9e342e0dac9c4599056834f09947faa153c382ca08bb49aec9f270b3
View file https://github.com/usethis-python/usethis-python/blob/f8d45fb3b9ca52a4c184963b8e3017fcaf51e5b8/src/usethis/_core/author.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1591/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-e12b70be9e342e0dac9c4599056834f09947faa153c382ca08bb49aec9f270b3
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-e12b70be9e342e0dac9c4599056834f09947faa153c382ca08bb49aec9f270b3
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-e12b70be9e342e0dac9c4599056834f09947faa153c382ca08bb49aec9f270b3
src/usethis/_file/toml/io_.pyhttps://github.com/usethis-python/usethis-python/pull/1591/files#diff-9bfab9d3e8c63b620c56aa0225738ad4750151548c6297f6c665264cb085ce14
View file https://github.com/usethis-python/usethis-python/blob/f8d45fb3b9ca52a4c184963b8e3017fcaf51e5b8/src/usethis/_file/toml/io_.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1591/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-9bfab9d3e8c63b620c56aa0225738ad4750151548c6297f6c665264cb085ce14
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-9bfab9d3e8c63b620c56aa0225738ad4750151548c6297f6c665264cb085ce14
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-9bfab9d3e8c63b620c56aa0225738ad4750151548c6297f6c665264cb085ce14
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-9bfab9d3e8c63b620c56aa0225738ad4750151548c6297f6c665264cb085ce14
tests/usethis/_core/test_author.pyhttps://github.com/usethis-python/usethis-python/pull/1591/files#diff-c0bc731509a16add33b6a2cbae76accdee5b35b7cc04ac1dfd0f77c96038e8f7
View file https://github.com/usethis-python/usethis-python/blob/f8d45fb3b9ca52a4c184963b8e3017fcaf51e5b8/tests/usethis/_core/test_author.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1591/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-c0bc731509a16add33b6a2cbae76accdee5b35b7cc04ac1dfd0f77c96038e8f7
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-c0bc731509a16add33b6a2cbae76accdee5b35b7cc04ac1dfd0f77c96038e8f7
tests/usethis/_file/toml/test_toml_io_.pyhttps://github.com/usethis-python/usethis-python/pull/1591/files#diff-10de5022c4c7af6dd2fe5fc98fdf0bdae7e32985e8619482768783dd1a95e51d
View file https://github.com/usethis-python/usethis-python/blob/f8d45fb3b9ca52a4c184963b8e3017fcaf51e5b8/tests/usethis/_file/toml/test_toml_io_.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1591/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-10de5022c4c7af6dd2fe5fc98fdf0bdae7e32985e8619482768783dd1a95e51d
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-10de5022c4c7af6dd2fe5fc98fdf0bdae7e32985e8619482768783dd1a95e51d
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-10de5022c4c7af6dd2fe5fc98fdf0bdae7e32985e8619482768783dd1a95e51d
tests/usethis/_tool/impl/base/test_ruff.pyhttps://github.com/usethis-python/usethis-python/pull/1591/files#diff-b2f7ed409e59821eda2a702039dbd41d3cdf664c804e1e392db2b28031c4b391
View file https://github.com/usethis-python/usethis-python/blob/f8d45fb3b9ca52a4c184963b8e3017fcaf51e5b8/tests/usethis/_tool/impl/base/test_ruff.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1591/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-b2f7ed409e59821eda2a702039dbd41d3cdf664c804e1e392db2b28031c4b391
https://github.com/usethis-python/usethis-python/pull/1591/files#diff-b2f7ed409e59821eda2a702039dbd41d3cdf664c804e1e392db2b28031c4b391
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1591/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.