poetry
poetry copied to clipboard
local-configurations VS global-configurations, which takes precedence
Issue Kind
Unclear documentation
Existing Link
https://python-poetry.org/docs/configuration/
Description
It is clearly stated in your documentation that poetry can be configured both locally and globally:
- The file
poetry.tomlstores local-configurations ofpoetry. - The file
config.tomlstores the global-configurations ofpoetry.
However, the documentation does not specify what would happen if the same configuration (i.e. setting) was set in both files (i.e. both globally and locally) to a different option. My guess is that the local-configuration (i.e. the configuration in the poetry.toml file) would take precedence/advantage, but I am not sure, since it is not mentioned in the documentation.
Contributions to make that more explicit are welcome. And yes, local (project) config is overwriting the global settings.