Title: Add prek hook to forbid double backticks in docstrings by Copilot · Pull Request #1828 · usethis-python/usethis-python · GitHub
Open Graph Title: Add prek hook to forbid double backticks in docstrings by Copilot · Pull Request #1828 · usethis-python/usethis-python
X Title: Add prek hook to forbid double backticks in docstrings by Copilot · Pull Request #1828 · usethis-python/usethis-python
Description: Agents and developers sometimes write RST-style double-backtick markup ( foo ) in docstrings when single backticks should be used. This adds a bespoke prek hook to catch these automatically. Hook: check-docstring-substrings Parses Python files via ast module — checks only docstring content, no false positives from code or comments Accepts --pattern args for arbitrary forbidden regex patterns; files passed by pre-commit Reports file/line/column for each violation Configured with regex (?
Open Graph Description: Agents and developers sometimes write RST-style double-backtick markup ( foo ) in docstrings when single backticks should be used. This adds a bespoke prek hook to catch these automatically. Hook: ...
X Description: Agents and developers sometimes write RST-style double-backtick markup ( foo ) in docstrings when single backticks should be used. This adds a bespoke prek hook to catch these automatically. Hook: ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1828
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e1b94926-5414-e633-6dbc-25e5bf369f0e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E744:F97BC:BEC2A:102446:6A4D2E8D |
| html-safe-nonce | 3297b1cb581756300229e8b947250e621c5cadc189133f219d1797028ab9a2a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzQ0OkY5N0JDOkJFQzJBOjEwMjQ0Njo2QTREMkU4RCIsInZpc2l0b3JfaWQiOiI3OTgzNzk3MTkzNzE3NjU3MjMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f6e203e3f5bc29c2a88fe07cf4e64e8c31b79e68068ff79609df10736f877d27 |
| hovercard-subject-tag | pull_request:3494694335 |
| 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/1828/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 | Agents and developers sometimes write RST-style double-backtick markup ( foo ) in docstrings when single backticks should be used. This adds a bespoke prek hook to catch these automatically. Hook: ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width