Title: Provide a way to add pre-commits in the conventional way · Issue #408 · usethis-python/usethis-python · GitHub
Open Graph Title: Provide a way to add pre-commits in the conventional way · Issue #408 · usethis-python/usethis-python
X Title: Provide a way to add pre-commits in the conventional way · Issue #408 · usethis-python/usethis-python
Description: Motivation We're doing shenanigans at the moment as per #22, where we run the pre-commit from a venv. There are only select circumstances where the workaround is strictly necessary - e.g. deptry and even if that case we might want to pro...
Open Graph Description: Motivation We're doing shenanigans at the moment as per #22, where we run the pre-commit from a venv. There are only select circumstances where the workaround is strictly necessary - e.g. deptry an...
X Description: Motivation We're doing shenanigans at the moment as per #22, where we run the pre-commit from a venv. There are only select circumstances where the workaround is strictly necessary - e.g. deptr...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/408
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide a way to add pre-commits in the conventional way","articleBody":"**Motivation**\nWe're doing shenanigans at the moment as per #22, where we run the pre-commit from a venv.\n \nThere are only select circumstances where the workaround is strictly necessary - e.g. deptry and even if that case we might want to provide the non-venv way for people who prefer to do an explicit mapping (we can just have different defaults) Maybe an `--in-venv` option to force it to use a install based process. \n\nAnother reason to use the venv approach is for the sake of editor integrations, e.g. `ruff` to keep versions in sync when we need to have the tool installed both in the venv and run locally. Relates to #111.\n\n**Summary of desired enhancement**\nProvide a way to add pre-commits in the conventional way","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-03-25T20:53:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/408/usethis-python/issues/408"}
| 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:4c32a4d8-964a-8d3b-3c7f-8435e2bef4d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F20:4950B:1F3C15B:2A99384:6A4F30D2 |
| html-safe-nonce | 09fe90c9911209016a90aac7168dc4280d37e2b1514dc2af76509c289accc589 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjIwOjQ5NTBCOjFGM0MxNUI6MkE5OTM4NDo2QTRGMzBEMiIsInZpc2l0b3JfaWQiOiI3NTE3NzIxOTAyNjk1MDAyMzIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0b86756212ae8663854fa8674dcb4de08a6d8e21bfb563363e11088ca20327cb |
| hovercard-subject-tag | issue:2947738521 |
| 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/408/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a309d7b93721d8eb07783825d849be372d57de47f2477fed112be264e3e60a6/usethis-python/usethis-python/issues/408 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a309d7b93721d8eb07783825d849be372d57de47f2477fed112be264e3e60a6/usethis-python/usethis-python/issues/408 |
| og:image:alt | Motivation We're doing shenanigans at the moment as per #22, where we run the pre-commit from a venv. There are only select circumstances where the workaround is strictly necessary - e.g. deptry an... |
| 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 | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width