Title: [MNT]: Add codespell to pre-commit hooks · Issue #22740 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Add codespell to pre-commit hooks · Issue #22740 · matplotlib/matplotlib
X Title: [MNT]: Add codespell to pre-commit hooks · Issue #22740 · matplotlib/matplotlib
Description: Summary In PR #22733 @QuLogic caught a spelling error of mine (which is great!) but there will inevitably be typos that slip through if only humans are checking. https://github.com/codespell-project/codespell is a really nice way to chec...
Open Graph Description: Summary In PR #22733 @QuLogic caught a spelling error of mine (which is great!) but there will inevitably be typos that slip through if only humans are checking. https://github.com/codespell-projec...
X Description: Summary In PR #22733 @QuLogic caught a spelling error of mine (which is great!) but there will inevitably be typos that slip through if only humans are checking. https://github.com/codespell-projec...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22740
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Add codespell to pre-commit hooks","articleBody":"### Summary\r\n\r\nIn PR #22733 @QuLogic caught a spelling error of mine (which is great!) but there will inevitably be typos that slip through if only humans are checking. https://github.com/codespell-project/codespell is a really nice way to check for typos and it has a nice pre-commit hook. As Matplotlib [already uses pre-commit](https://github.com/matplotlib/matplotlib/blob/da9533d507c1f06ceee5078c9cbbd99897809d31/.pre-commit-config.yaml) :rocket: (thanks to @ianhi in PR #21583) this would be an easy add. :+1: \r\n\r\n### Proposed fix\r\n\r\nAdd the following hook (maybe some variations) to [`.pre-commit-config.yaml`](https://github.com/matplotlib/matplotlib/blob/da9533d507c1f06ceee5078c9cbbd99897809d31/.pre-commit-config.yaml)\r\n\r\n```yaml\r\n - repo: https://github.com/codespell-project/codespell\r\n rev: v2.1.0\r\n hooks:\r\n - id: codespell\r\n files: ^.*\\.(py|c|h|md|rst|yml)$\r\n args: [\"--write-changes\", \"--ignore-words-list\", \"hist,nd\"]\r\n```","author":{"url":"https://github.com/matthewfeickert","@type":"Person","name":"matthewfeickert"},"datePublished":"2022-03-31T04:39:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22740/matplotlib/issues/22740"}
| 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:4929c9d1-17e4-f9ce-fa16-616312d91594 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF10:35149:84D38:B4DDF:6A5122AD |
| html-safe-nonce | c6cd58c76eea4969a92a80fe421ec441d381d549a514e2f0e69922ec990d480d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjEwOjM1MTQ5Ojg0RDM4OkI0RERGOjZBNTEyMkFEIiwidmlzaXRvcl9pZCI6IjYzNDY4OTE1NTI2OTUwNjczMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 33fee3534d15d8147f791abccb909f86566cc8a78b57819745bc6fd1e0896ed7 |
| hovercard-subject-tag | issue:1187488259 |
| 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/matplotlib/matplotlib/22740/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a8abfd43a4682a44a38b1cee468cca6e3624c72791c137a58254400c4c1f5bd/matplotlib/matplotlib/issues/22740 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a8abfd43a4682a44a38b1cee468cca6e3624c72791c137a58254400c4c1f5bd/matplotlib/matplotlib/issues/22740 |
| og:image:alt | Summary In PR #22733 @QuLogic caught a spelling error of mine (which is great!) but there will inevitably be typos that slip through if only humans are checking. https://github.com/codespell-projec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthewfeickert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width