Title: Document the `usethis_config` class better · Issue #1099 · usethis-python/usethis-python · GitHub
Open Graph Title: Document the `usethis_config` class better · Issue #1099 · usethis-python/usethis-python
X Title: Document the `usethis_config` class better · Issue #1099 · usethis-python/usethis-python
Description: In usethis._config.usethis_config we keep global state which changes the application behaviour, e.g. whether some categories of messages are suppressed, whether we should run in offline mode, etc. This can be used as a context manager to...
Open Graph Description: In usethis._config.usethis_config we keep global state which changes the application behaviour, e.g. whether some categories of messages are suppressed, whether we should run in offline mode, etc. ...
X Description: In usethis._config.usethis_config we keep global state which changes the application behaviour, e.g. whether some categories of messages are suppressed, whether we should run in offline mode, etc. ...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1099
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document the `usethis_config` class better","articleBody":"In `usethis._config.usethis_config` we keep global state which changes the application behaviour, e.g. whether some categories of messages are suppressed, whether we should run in offline mode, etc.\n\nThis can be used as a context manager to temporarily over-ride the global state.\n\nThe command line interface can also set some of these global settings via flags (again, via the context manager).\n\nDiscussing this in CONTRIBUTING.md under the architecture section would be good.\n\nThe main purpose of this is to avoid pass-through variables. In `copilot-instructions.md` we need to make it clear that it is not acceptable to add new global state unless there is a very good reason and the state is useful across many different commands, across the whole application. The purpose is to control application behaviour, not the specific behaviour of one command in the CLI.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-11-05T12:03:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1099/usethis-python/issues/1099"}
| 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:092d4b6d-f86d-4b99-e4d0-c1181faccfbf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFD6:3B3BAC:CDA1EA:12D009B:6A4E2B4B |
| html-safe-nonce | 8d43f5263dcb35a5b473988a7e047c21050961bda801be96aa6dcc9c5e93434e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkQ2OjNCM0JBQzpDREExRUE6MTJEMDA5Qjo2QTRFMkI0QiIsInZpc2l0b3JfaWQiOiI1ODEyMjI5NTc5OTAxNjEyMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f5494adbe8c937249d3707972120f2a050e3ce8d21a0039d1e1cf8fbd22a8ac |
| hovercard-subject-tag | issue:3590697407 |
| 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/1099/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36fe3247ae69fa51cc2351ce24038dee8192baf73d2dabf3a9a7aad6277c1008/usethis-python/usethis-python/issues/1099 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36fe3247ae69fa51cc2351ce24038dee8192baf73d2dabf3a9a7aad6277c1008/usethis-python/usethis-python/issues/1099 |
| og:image:alt | In usethis._config.usethis_config we keep global state which changes the application behaviour, e.g. whether some categories of messages are suppressed, whether we should run in offline mode, etc. ... |
| 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 | d9dd20d38f8ae3c4cb6b597807431db300d0bd2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width