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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:18c9be31-e46b-7657-a51c-ec55c253e70a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E6FC:379A70:E4EAE4:1424DFE:6A4CAEF5 |
| html-safe-nonce | 6b9d6c5bb6ea09c9400747e1371a7bb90dc7b864dd43442c5d07d4c88001e669 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkZDOjM3OUE3MDpFNEVBRTQ6MTQyNERGRTo2QTRDQUVGNSIsInZpc2l0b3JfaWQiOiI3NTE3NjY2NjYwODI1NDc2ODUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eb0d0bb8993c451f1b2f72f193eb6b22b8b06017c272dfcb8c5dc39df604f8ff |
| hovercard-subject-tag | pull_request:3456087212 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1591/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 | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width