Title: Only use `files_manager` in the test suite · Issue #1819 · usethis-python/usethis-python · GitHub
Open Graph Title: Only use `files_manager` in the test suite · Issue #1819 · usethis-python/usethis-python
X Title: Only use `files_manager` in the test suite · Issue #1819 · usethis-python/usethis-python
Description: At the moment we use a mix of PyprojectTOMLManager, SetupCFGManager etc. context managers in tests. Better to always consistently just use files_manager. We can use a pygrep language prek hook to forbid any lines starting with (whitespac...
Open Graph Description: At the moment we use a mix of PyprojectTOMLManager, SetupCFGManager etc. context managers in tests. Better to always consistently just use files_manager. We can use a pygrep language prek hook to f...
X Description: At the moment we use a mix of PyprojectTOMLManager, SetupCFGManager etc. context managers in tests. Better to always consistently just use files_manager. We can use a pygrep language prek hook to f...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1819
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Only use `files_manager` in the test suite","articleBody":"At the moment we use a mix of PyprojectTOMLManager, SetupCFGManager etc. context managers in tests.\n\nBetter to always consistently just use files_manager.\n\nWe can use a `pygrep` language prek hook to forbid any lines starting with (whitespace and) `with` followed by `Manager` from within the test suite. That will help us catch the violations and make it easier to work through violations.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2026-04-06T03:41:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1819/usethis-python/issues/1819"}
| 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:4cf71886-1ad6-7149-8edd-585671f31be3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD2E:10CEBD:FAA880:1579983:6A4DD718 |
| html-safe-nonce | 432ce3306bffb840e4d42552c1dcc7cc4d7eafa970ad29054d18627904a0bd83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDJFOjEwQ0VCRDpGQUE4ODA6MTU3OTk4Mzo2QTRERDcxOCIsInZpc2l0b3JfaWQiOiI2MDM1MzI3ODM0Njk5NzE2Mzc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6a4eef484181d4abde551d632dde2ed9b6eed204bd6859f84ccab0d1013eb44e |
| hovercard-subject-tag | issue:4209398977 |
| 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/1819/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36ec422deb7d0eedb15d032e217bb5985be852f06779e922713c402c7112114b/usethis-python/usethis-python/issues/1819 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36ec422deb7d0eedb15d032e217bb5985be852f06779e922713c402c7112114b/usethis-python/usethis-python/issues/1819 |
| og:image:alt | At the moment we use a mix of PyprojectTOMLManager, SetupCFGManager etc. context managers in tests. Better to always consistently just use files_manager. We can use a pygrep language prek hook to f... |
| 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 | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width