Title: Respect Ruff rule code hierarchy in select/ignore lists by Copilot · Pull Request #1527 · usethis-python/usethis-python · GitHub
Open Graph Title: Respect Ruff rule code hierarchy in select/ignore lists by Copilot · Pull Request #1527 · usethis-python/usethis-python
X Title: Respect Ruff rule code hierarchy in select/ignore lists by Copilot · Pull Request #1527 · usethis-python/usethis-python
Description: Add is_rule_covered_by() and reconcile_rules() helpers in _tool/rule.py
Introduce RuleReconciliation frozen dataclass (replaces tuple return)
Update select_rules / ignore_rules in _tool/base.py to use reconciliation
Update ignore_rules_in_glob in _tool/impl/base/ruff.py to use reconciliation
Fix bug: startswith was too crude — now requires a digit boundary after prefix match (e.g. F covers F101 but not FLY)
Add tests for cross-group scenarios (FLY vs F, FLY001 vs F, F101 vs F1)
Run full static checks and verify
Original prompt
This section details on the original issue you should resolve
Open Graph Description: Add is_rule_covered_by() and reconcile_rules() helpers in _tool/rule.py Introduce RuleReconciliation frozen dataclass (replaces tuple return) Update select_rules / ignore_rules in _tool/base.py t...
X Description: Add is_rule_covered_by() and reconcile_rules() helpers in _tool/rule.py Introduce RuleReconciliation frozen dataclass (replaces tuple return) Update select_rules / ignore_rules in _tool/base.py t...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1527
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:572e4132-cd3a-5501-14f3-cd945b9c9563 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A83A:3C7284:4ADA1:64EA4:6A4D7DD8 |
| html-safe-nonce | 9b20ec2f2f5fbdf06c52baef4c889e4a58ef48edb2ca6ff6780bb9ac4061e4c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODNBOjNDNzI4NDo0QURBMTo2NEVBNDo2QTREN0REOCIsInZpc2l0b3JfaWQiOiI2NDM5MDUyMjA5MzEzMTE5NzA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7cda172a923816adb9f87e30cf301f564b4a29dc487412c8824d4edc734f17df |
| hovercard-subject-tag | pull_request:3442652628 |
| 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/1527/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 | Add is_rule_covered_by() and reconcile_rules() helpers in _tool/rule.py Introduce RuleReconciliation frozen dataclass (replaces tuple return) Update select_rules / ignore_rules in _tool/base.py t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| 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 | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width