Title: Run formatters automatically when "use" is invoked · Issue #1713 · usethis-python/usethis-python · GitHub
Open Graph Title: Run formatters automatically when "use" is invoked · Issue #1713 · usethis-python/usethis-python
X Title: Run formatters automatically when "use" is invoked · Issue #1713 · usethis-python/usethis-python
Description: When working on #1652, it became clear that pyproject-fmt will format the default uv init repo structure. If we call the function to use pyproject-fmt, we should invoke the tool for its side effects. We should add an abstract method to T...
Open Graph Description: When working on #1652, it became clear that pyproject-fmt will format the default uv init repo structure. If we call the function to use pyproject-fmt, we should invoke the tool for its side effect...
X Description: When working on #1652, it became clear that pyproject-fmt will format the default uv init repo structure. If we call the function to use pyproject-fmt, we should invoke the tool for its side effect...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1713
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Run formatters automatically when \"use\" is invoked","articleBody":"When working on #1652, it became clear that `pyproject-fmt` will format the default `uv init` repo structure.\n\nIf we call the function to use `pyproject-fmt`, we should invoke the tool for its side effects.\n\nWe should add an abstract method to `Tool` called `apply`. By default, it will be no-op, i.e. just have `pass`.\n\nBut the `PyprojectFmtTool` should over-ride this to invoke its command via subprocess. We should have an appropriate message via tick print.\n\nWe should do the exact same for Ruff format (not the linter auto-fixes).\n\n","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2026-04-01T10:41:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1713/usethis-python/issues/1713"}
| 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:e5d799b3-4fb2-fe51-be53-36afed221aee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF12:A825:19C6E11:257234F:6A4E552F |
| html-safe-nonce | 25484369dabeb1bbf9f33fc33b47c8c1dd4a11fc9973f1116920f5f6dd97a685 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjEyOkE4MjU6MTlDNkUxMToyNTcyMzRGOjZBNEU1NTJGIiwidmlzaXRvcl9pZCI6IjQ3MDc3OTUxMDg5ODM4ODcxNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3c84af4c2e63bcaf769813d8285e94c8140c2dba38f47624e230cf35bd20186 |
| hovercard-subject-tag | issue:4185923882 |
| 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/1713/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f94d30b21bd0882b3bdacbb476ff3afe2bad6dbcd0aa1c33a71fcfbc01960acc/usethis-python/usethis-python/issues/1713 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f94d30b21bd0882b3bdacbb476ff3afe2bad6dbcd0aa1c33a71fcfbc01960acc/usethis-python/usethis-python/issues/1713 |
| og:image:alt | When working on #1652, it became clear that pyproject-fmt will format the default uv init repo structure. If we call the function to use pyproject-fmt, we should invoke the tool for its side effect... |
| 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 | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | f344f1eab54fc7dfc02d0d018cda7e158c3db65c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width