Title: Don't change quote style in YAML · Issue #283 · usethis-python/usethis-python · GitHub
Open Graph Title: Don't change quote style in YAML · Issue #283 · usethis-python/usethis-python
X Title: Don't change quote style in YAML · Issue #283 · usethis-python/usethis-python
Description: Motivation Calling get_hook_names modifies the YAML file - only with cosmetic changes but it's still annoying. We should be able to have a read-only version of this operation. More generally, respecting round-trip quote convention would ...
Open Graph Description: Motivation Calling get_hook_names modifies the YAML file - only with cosmetic changes but it's still annoying. We should be able to have a read-only version of this operation. More generally, respe...
X Description: Motivation Calling get_hook_names modifies the YAML file - only with cosmetic changes but it's still annoying. We should be able to have a read-only version of this operation. More generally, r...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Don't change quote style in YAML","articleBody":"**Motivation**\nCalling `get_hook_names` modifies the YAML file - only with cosmetic changes but it's still annoying. We should be able to have a read-only version of this operation.\n\nMore generally, respecting round-trip quote convention would be excellent, if possible under `ruamel.yaml`. I feel like I had an issue open for this in the past but the conclusion was that it didn't support this. In any case, having a `read_only=True` flag to the `edit_pre_commit_config_yaml` context manager might be a simple fix.\n\n**Summary of desired enhancement**\nTest and fix the side effect of `get_hook_names`.\n","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-02-07T21:55:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/283/usethis-python/issues/283"}
| 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:66053a70-6717-2a1e-3a8c-7cc0b3c57e65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99EA:2C03D:245A181:320FC87:6A4ED1C1 |
| html-safe-nonce | e6f2bd33fe3ffbf50ace3e0071f315a03232488ce5866a65f13aceea9dbb7dfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUVBOjJDMDNEOjI0NUExODE6MzIwRkM4Nzo2QTRFRDFDMSIsInZpc2l0b3JfaWQiOiIxMzM5NzIyOTk1NzM2Njk1MjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fb6387d7b874d1aa7aa0a18ae3bcaa68b7f4910a42c2ea4c1185ac546f8d418c |
| hovercard-subject-tag | issue:2839162977 |
| 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/283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89451b27e3da0e478027e42b8102212f69805e973a5fef1362a85c9445b8b6cf/usethis-python/usethis-python/issues/283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89451b27e3da0e478027e42b8102212f69805e973a5fef1362a85c9445b8b6cf/usethis-python/usethis-python/issues/283 |
| og:image:alt | Motivation Calling get_hook_names modifies the YAML file - only with cosmetic changes but it's still annoying. We should be able to have a read-only version of this operation. More generally, respe... |
| 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 | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width