-
-
Notifications
You must be signed in to change notification settings - Fork 30
if missing workspace.toml, refer to pyproject.toml #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for this Pull Request @GH-maggio! ⭐ I'll have a look at this later today (at latest during the weekend). |
|
I have only had a quick look so far, and appreciate the effort and the good idea about having the tool-specific things in the pyproject.toml. ⭐ I added the As an alternative that I can come up with from the top of my head, is to locate a pyproject.toml (instead of the workspace.toml), traverse the dictionaries as today, open each pyproject and look for a top-level config in there. That would work, I think! I wouldn't want to overwrite any existing pyproject.toml file (created by poetry, hatch, pdm or rye already) when running "create workspace". Maybe we should allow both alternatives: the workspace config in a workspace.toml or in a pyproject.toml. What do you think about that? I know some teams wanting their pyproject.tomls short and simple and without any extras, others want all the config in there. 😄 If so, the |
I think that is the best course, also to avoid breaking the current behavior. So the I'll refactor this PR to reflex this behavior. |
|
|
Great work! ⭐ I'll merge this and will publish a new version shortly. Huge thank you for making this improvement @GH-maggio 👏 👏 👏 |
|
I have published new versions of the Poetry plugin and the CLI! Also just updated the docs: https://davidvujic.github.io/python-polylith-docs/configuration/ |

Description
Merged workspace.toml into pyproject.toml
Motivation and Context
Reduces number of configuration files, ref: Arbitrary tool configuration: the [tool] table
How Has This Been Tested?
Locally tested via
pytest testTypes of changes
Checklist:
*If approved by the project maintainer, I will update the documentation.