Title: Respect Ruff rule code hierarchy · Issue #1526 · usethis-python/usethis-python · GitHub
Open Graph Title: Respect Ruff rule code hierarchy · Issue #1526 · usethis-python/usethis-python
X Title: Respect Ruff rule code hierarchy · Issue #1526 · usethis-python/usethis-python
Description: If Ruff selection contains "ALL" then we're already selecting all rules! There's not need to explicitly select another rule, it just gets "absorbed" into this "wildcard" style rule. Similarly, if we want to select a specific rule code li...
Open Graph Description: If Ruff selection contains "ALL" then we're already selecting all rules! There's not need to explicitly select another rule, it just gets "absorbed" into this "wildcard" style rule. Similarly, if w...
X Description: If Ruff selection contains "ALL" then we're already selecting all rules! There's not need to explicitly select another rule, it just gets "absorbed" into this "wild...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1526
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Respect Ruff rule code hierarchy","articleBody":"If Ruff selection contains \"ALL\" then we're already selecting all rules! There's not need to explicitly select another rule, it just gets \"absorbed\" into this \"wildcard\" style rule.\n\nSimilarly, if we want to select a specific rule code like TC001 then if there's already the rule code group like TC then there's no point adding it - we shouldn't.\n\nIt also goes the other way. We should replace a less general rule with a more general one. If we want to select TC and there's already TC001 then we should replace TC001 with TC.\n\nAll these principles also apply to ignores! And per-file ignores! Any time there's a list of ruff rules.\n\nWe should probably keep the current level of abstraction which manages the raw rule lists, but basically move that into helper methods, and so we can add some smart logic on top that manages the hierarchy between rule codes.\n\nIt is safe to assume that all rule codes follow this pattern - not just Ruff.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2026-03-25T03:04:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1526/usethis-python/issues/1526"}
| 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:117ebcc0-faae-6061-a8d5-22edd37da806 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3DA:1081DA:11534D2:17B40A0:6A4D6D78 |
| html-safe-nonce | 2ec72b6662720b5cb02b1a07c92888528cf458b88466d1a2f4af0dfd780db13c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0RBOjEwODFEQToxMTUzNEQyOjE3QjQwQTA6NkE0RDZENzgiLCJ2aXNpdG9yX2lkIjoiODAwNjYxNzgzNjcyNTAzODQ1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8bd7609673ba234dea6cfcb57e296e06a99025e360d4e38e9a73e6a63b5b1a62 |
| hovercard-subject-tag | issue:4132045273 |
| 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/1526/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef28c7eb77c7f63523caef0657c7add0a5abc6e7be4133346823e07805caca6e/usethis-python/usethis-python/issues/1526 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef28c7eb77c7f63523caef0657c7add0a5abc6e7be4133346823e07805caca6e/usethis-python/usethis-python/issues/1526 |
| og:image:alt | If Ruff selection contains "ALL" then we're already selecting all rules! There's not need to explicitly select another rule, it just gets "absorbed" into this "wildcard" style rule. Similarly, if w... |
| 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 | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| 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 | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width