Title: Enable `reportUnusedParameter` in basedpyright by Copilot · Pull Request #1414 · usethis-python/usethis-python · GitHub
Open Graph Title: Enable `reportUnusedParameter` in basedpyright by Copilot · Pull Request #1414 · usethis-python/usethis-python
X Title: Enable `reportUnusedParameter` in basedpyright by Copilot · Pull Request #1414 · usethis-python/usethis-python
Description: reportUnusedParameter was globally suppressed in basedpyright, leaving unused function parameters undetected across the entire codebase.
Changes
Enable rule globally: Remove reportUnusedParameter = false from [tool.basedpyright]
Suppress in tests: Add reportUnusedParameter = false to the tests execution environment (unused parameters are idiomatic there, e.g. pytest fixtures used for side-effects)
[[tool.basedpyright.executionEnvironments]]
root = "tests"
reportUnreachable = false
reportUnusedFunction = false
reportUnusedParameter = false # added
The src/ codebase already has zero violations.
Original prompt
This section details on the original issue you should resolve
Open Graph Description: reportUnusedParameter was globally suppressed in basedpyright, leaving unused function parameters undetected across the entire codebase. Changes Enable rule globally: Remove reportUnusedParameter ...
X Description: reportUnusedParameter was globally suppressed in basedpyright, leaving unused function parameters undetected across the entire codebase. Changes Enable rule globally: Remove reportUnusedParameter ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1414
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6d00a1d2-ab3c-84ed-e768-87a7c56d0e3c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E74C:2B35BD:67B68:903C2:6A4D0F90 |
| html-safe-nonce | 874f330c1b3bc763b0a7b87a18b8992c49399f58d88e584b2db646565d99f87f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzRDOjJCMzVCRDo2N0I2ODo5MDNDMjo2QTREMEY5MCIsInZpc2l0b3JfaWQiOiI1MjA5NTY1MDE4NTA1MTU0NDQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d56024e6fef936c0f2ca068b5c1120cb05fd79efdb7c89a60367eb0b5cdd977d |
| hovercard-subject-tag | pull_request:3393220926 |
| 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/1414/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 | reportUnusedParameter was globally suppressed in basedpyright, leaving unused function parameters undetected across the entire codebase. Changes Enable rule globally: Remove reportUnusedParameter ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width