File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,20 @@ This also works for secret settings, like credentials:
119119export POETRY_HTTP_BASIC_MY_REPOSITORY_PASSWORD=secret
120120```
121121
122+ ## Configuration sources
123+
124+ When a setting is set in multiple places, Poetry applies the following precedence
125+ (from highest to lowest):
126+
127+ 1 . Environment variables (for example, ` POETRY_VIRTUALENVS_CREATE ` )
128+ 2 . The local ` poetry.toml ` file (created with ` poetry config --local ` )
129+ 3 . The global ` config.toml ` file
130+ 4 . The setting's default value
131+
132+ For repository credentials (` http-basic.* ` , ` pypi-token.* ` ), Poetry may also read
133+ from ` auth.toml ` and the system keyring (for details see [ Repositories] ({{< relref "repositories" >}})).
134+ Environment variables still take precedence over file-based values.
135+
122136## Migrate outdated configs
123137
124138If Poetry renames or remove config options it might be necessary to migrate explicit set options. This is possible
You can’t perform that action at this time.
0 commit comments