Skip to content

Commit 5e1fd5e

Browse files
authored
docs: clarify local vs global config precedence (#10676)
1 parent 93baede commit 5e1fd5e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/configuration.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@ Your local configuration of Poetry application is stored in the `poetry.toml` fi
3535
which is separate from `pyproject.toml`.
3636
{{% /note %}}
3737

38-
{{% warning %}}
39-
Be mindful about checking in this file into your repository since it may contain user-specific or sensitive information.
38+
{{% note %}}
39+
If a setting is defined in both `poetry.toml` (local/project) and `config.toml` (global),
40+
the local/project configuration takes precedence over the global configuration.
4041
{{% /note %}}
4142

43+
{{% warning %}}
44+
Be mindful when checking in this file into your repository since it may contain user-specific or sensitive information.
45+
{{% /warning %}}
46+
4247
## Listing the current configuration
4348

4449
To list the current configuration you can use the `--list` option

0 commit comments

Comments
 (0)