Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and dalebrydon committed Jul 24, 2023
1 parent 8020b3e commit 87878a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/html/topics/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Additionally, environment variables can be specified which will override any of
pip's configuration files are located in fairly standard locations. This
location is different on different operating systems, and has some additional
complexity for backwards compatibility reasons. Note that if user config files
exist in both the legacy and current locations, values in the current file
exist in both the legacy and current locations, values in the current file
will override values in the legacy file.

```{tab} Unix
Expand Down
2 changes: 1 addition & 1 deletion news/11815.doc.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fix explanation of how PIP_CONFIG_FILE works
Fix explanation of how PIP_CONFIG_FILE works
3 changes: 1 addition & 2 deletions src/pip/_internal/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def get_environ_vars(self) -> Iterable[Tuple[str, str]]:
def iter_config_files(self) -> Iterable[Tuple[Kind, List[str]]]:
"""Yields variant and configuration files associated with it.
This should be treated like items of a dictionary. The order
This should be treated like items of a dictionary. The order
here doesn't affect what gets overridden. That is controlled
by OVERRIDE_ORDER. However this does control the order they are
displayed to the user. It's probably most ergononmic to display
Expand Down Expand Up @@ -356,7 +356,6 @@ def iter_config_files(self) -> Iterable[Tuple[Kind, List[str]]]:
else:
yield kinds.ENV, []


def get_values_in_config(self, variant: Kind) -> Dict[str, Any]:
"""Get values present in a config file"""
return self._config[variant]
Expand Down

0 comments on commit 87878a8

Please sign in to comment.