Title: Support `setup.cfg` and other `ini` files · Issue #331 · usethis-python/usethis-python · GitHub
Open Graph Title: Support `setup.cfg` and other `ini` files · Issue #331 · usethis-python/usethis-python
X Title: Support `setup.cfg` and other `ini` files · Issue #331 · usethis-python/usethis-python
Description: Motivation Many tools support an ini file for configuration (see #185, #219, #221, and #280). Although it's always preferable to use pyproject.toml, ideally we use whatever configuration approach is already being used and work with it. T...
Open Graph Description: Motivation Many tools support an ini file for configuration (see #185, #219, #221, and #280). Although it's always preferable to use pyproject.toml, ideally we use whatever configuration approach i...
X Description: Motivation Many tools support an ini file for configuration (see #185, #219, #221, and #280). Although it's always preferable to use pyproject.toml, ideally we use whatever configuration approa...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/331
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support `setup.cfg` and other `ini` files","articleBody":"**Motivation**\nMany tools support an `ini` file for configuration (see #185, #219, #221, and #280). Although it's always preferable to use `pyproject.toml`, ideally we use whatever configuration approach is already being used and work with it.\n\nThis means each tool needs both managed `pyproject.toml` sections and managed sections for other files too. Some tools have bespoke files (e.g. `ruff.toml`). So we need some abstraction for how to describe:\n\n- What the config section should look like for different files (note, this could involve a fair bit of (non-accidental?) duplcaition)\n- A heuristic for detecting which file to use for configuration (but what do we do when multiple files have configuration simultaneously already, or if it is standard practice for this tool to be configured in multiple files (but this doesn't happen yet so can we just say YAGNI?)\n\n**Summary of desired enhancement**\nProvide `ini` file support, especially for `setup.cfg` and appropriately modify the config file management abstractions for tools.\n","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-02-22T02:22:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/331/usethis-python/issues/331"}
| 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:393fd4af-f031-5b40-906f-137bf7e7b0ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A564:3FF092:565D4B:75B2E8:6A4DAA0D |
| html-safe-nonce | bc0cd7ba11c2ff9b3f6bf9faf595b8188fcff8e68af85b8fd26feae9ae72f587 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTY0OjNGRjA5Mjo1NjVENEI6NzVCMkU4OjZBNERBQTBEIiwidmlzaXRvcl9pZCI6IjQ4NTMyMDQ2NDk4Nzg4NTgyNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d50b4e19dd99c371b0c00ef05afc03098884aeca07acdf72d25e08254eb4460f |
| hovercard-subject-tag | issue:2870384019 |
| 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/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fac31f345b83617606043b0606e6fefa2b74bde27b3aa745c144f4f2e88d97b1/usethis-python/usethis-python/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fac31f345b83617606043b0606e6fefa2b74bde27b3aa745c144f4f2e88d97b1/usethis-python/usethis-python/issues/331 |
| og:image:alt | Motivation Many tools support an ini file for configuration (see #185, #219, #221, and #280). Although it's always preferable to use pyproject.toml, ideally we use whatever configuration approach i... |
| 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 | 47723578ce6819210724ef064c858fce6d3115a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width