summaryrefslogtreecommitdiff
path: root/src/pip/_internal/commands/configuration.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-8/+8
| | | | | | | | | | | The typing module has been available since Python 3.5. Guarding the import has been unnecessary since dropping Python 2. Some guards remain to either: - Avoid circular imports - Importing objects that are also guarded by typing.TYPE_CHECKING - Avoid mypy_extensions dependency
* Replace pip._internal.utils.typing with stdlib typingJon Dufresne2021-02-181-2/+2
| | | | | | | | The stdlib module has been available since Python 3.5 and the TYPE_CHECKING constant has been available since 3.5.2. By using stdlib, this removes the need for pip to maintain its own Python 2 typing compatibility shim.
* Use f-strings for simple string formattingJon Dufresne2020-12-251-1/+1
| | | | | | | Use pyupgrade to convert simple string formatting to use f-string syntax. pyupgrade is intentionally timid and will not create an f-string if it would make the expression longer or if the substitution parameters are anything but simple names or dotted names.
* Prepare isort for blackPradyun Gedam2020-09-231-5/+1
|
* Update linter: isortPradyun Gedam2020-09-231-1/+1
|
* Clean up code style changesPradyun Gedam2020-07-171-4/+7
| | | | | | Toward minimizing style changes in the overall PR diff, or toward consistency with the future use of black (in cases where I wasn't sure of a good way to minimize the diff).
* Enable flake8-logging-formatNguyễn Gia Phong2020-07-171-3/+2
|
* Nitpick logging callsNguyễn Gia Phong2020-07-171-4/+2
|
* Align write_output types with logger.infoDevesh Kumar Singh2020-07-071-2/+2
|
* Add type annotations for pip._internal.commands.configurationDevesh Kumar Singh2020-07-071-14/+19
|
* Add unit tests for pip config debugDevesh Kumar Singh2020-06-281-2/+2
|
* Add env and env var valuesDevesh Kumar Singh2020-06-281-2/+17
|
* Rename subcommand from list-files to debugDevesh Kumar Singh2020-06-281-4/+4
|
* List values per configuration fileDevesh Kumar Singh2020-06-281-5/+12
|
* Add option to list config files with pip configDevesh Kumar Singh2020-06-281-1/+15
|
* Fix run type annotation in base_command and configurationDevesh Kumar Singh2020-05-301-0/+6
|
* Merge pull request #8073 from deveshks/pip-config-docstring-fixPradyun Gedam2020-05-231-6/+7
|\
| * Fix pip config docstring to render correctly in docsDevesh Kumar Singh2020-04-181-6/+7
| |
* | fix(_internal/commands): Define a default add_option to child commandsgutsytechster2020-05-231-6/+6
| |
* | refactor(commands): Add method add_options and remove __init__gutsytechster2020-05-231-7/+10
|/ | | | | This removes the __init__ method of child classes and defines explicit method for adding command options.
* Better indentation for `pip config` descriptionPradyun Gedam2020-03-141-5/+5
|
* Remove the deprecated pip config --venv option (#7163)Pradyun Gedam2019-10-091-28/+0
|
* add per-file disallow_untyped_defs=False, and set it to True globallyMaxim Kurnikov2019-09-291-0/+3
|
* Ignore "require_virtualenv" in `pip config`Pradyun Gedam2019-09-071-0/+1
|
* Address #6876: Make command output go through a single function (#6881)A_Rog2019-08-221-3/+3
|
* Only import a Command class when it is actually needed.Chris Jerdonek2019-07-261-3/+0
| | | | | This resulted in an approximate 24% speed-up of a vanilla `pip` invocation on one system (0.477 secs before, 0.363 secs after).
* Change isort multi_line_output to 3Pradyun Gedam2019-07-221-1/+3
|
* Move config files locations inside a function (#6736)Xavier Fernandez2019-07-201-3/+7
|
* Move virtualenv detection functions into their own moduleXavier Fernandez2019-07-191-1/+2
|
* Configuration files may now also be stored under `sys.prefix` (#6268)Steve Dower2019-03-071-17/+43
| | | | | | | * Rename kinds.VENV to kinds.SITE and site_config_files to global_config_files * Add tests for config file options * Deprecate --venv in pip config
* Move status_codes to pip._internal.cliPradyun Gedam2018-07-301-1/+1
|
* Rename basecommand -> base_commandPradyun Gedam2018-07-301-1/+1
|
* Move basecommand to pip._internal.cliPradyun Gedam2018-07-291-1/+1
|
* Correctly assign summary for pip configPradyun Gedam2018-03-201-13/+13
|
* Move all internal APIs to pip._internalDonald Stufft2017-08-311-0/+227