Title: `usethis rule --ignore ERA001` removes comments in `ruff.toml` · Issue #1171 · usethis-python/usethis-python · GitHub
Open Graph Title: `usethis rule --ignore ERA001` removes comments in `ruff.toml` · Issue #1171 · usethis-python/usethis-python
X Title: `usethis rule --ignore ERA001` removes comments in `ruff.toml` · Issue #1171 · usethis-python/usethis-python
Description: e.g. lint.ignore = [ "ANN401", # This is too strict for dunder methods. "B023", # Prevents using df.loc[lambda _: ...]; too many false positives. "B024", # This is controversial, ABC's don't always need methods. "C408", # This is controv...
Open Graph Description: e.g. lint.ignore = [ "ANN401", # This is too strict for dunder methods. "B023", # Prevents using df.loc[lambda _: ...]; too many false positives. "B024", # This is controversial, ABC's don't always...
X Description: e.g. lint.ignore = [ "ANN401", # This is too strict for dunder methods. "B023", # Prevents using df.loc[lambda _: ...]; too many false positives. "B024", # This is con...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1171
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`usethis rule --ignore ERA001` removes comments in `ruff.toml`","articleBody":"e.g.\n\n```\nlint.ignore = [\n \"ANN401\", # This is too strict for dunder methods.\n \"B023\", # Prevents using df.loc[lambda _: ...]; too many false positives.\n \"B024\", # This is controversial, ABC's don't always need methods.\n \"C408\", # This is controversial, calls to `dict` can be more idiomatic than {}.\n]\n```\n\nbecomes\n\n```\nlint.ignore = [\"ANN401\", \"B023\", \"B024\", \"C408\", \"ERA001\"]\n```\n\nThis is a bug.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-12-01T19:17:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1171/usethis-python/issues/1171"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:64fb7847-dbbe-6a7c-4053-21cf99156aed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BFE:70BDC:AF727A:F518C5:6A4C9F13 |
| html-safe-nonce | 2cc793ed7b7dfeba443ca00beb9428445654e8dd6373023146c3b0a36dcc4976 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkZFOjcwQkRDOkFGNzI3QTpGNTE4QzU6NkE0QzlGMTMiLCJ2aXNpdG9yX2lkIjoiNDMzNTE1MzIxODI4ODc2MDUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a4331e8788220ffd015f0b87b0d4060c113e0a8f40999903533513cf76b9ab34 |
| hovercard-subject-tag | issue:3682497918 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/usethis-python/usethis-python/1171/issue_layout |
| twitter:image | https://opengraph.githubassets.com/198a73cd36d2cf1a435ed8299390927b65cf5dac42e40840e409c7c6009c8813/usethis-python/usethis-python/issues/1171 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/198a73cd36d2cf1a435ed8299390927b65cf5dac42e40840e409c7c6009c8813/usethis-python/usethis-python/issues/1171 |
| og:image:alt | e.g. lint.ignore = [ "ANN401", # This is too strict for dunder methods. "B023", # Prevents using df.loc[lambda _: ...]; too many false positives. "B024", # This is controversial, ABC's don't always... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| 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