Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of the --python python/py shortcuts | Paul Moore | 2022-08-01 | 1 | -23/+0 |
| | |||||
* | Skip the executable check, as subprocess.run will catch this | Paul Moore | 2022-07-31 | 1 | -3/+2 |
| | |||||
* | Catch errors from running the subprocess | Paul Moore | 2022-07-31 | 1 | -2/+7 |
| | |||||
* | Check the argument to --python is executable | Paul Moore | 2022-07-29 | 1 | -9/+12 |
| | |||||
* | Make get_runnable_pip public | Paul Moore | 2022-07-29 | 1 | -2/+2 |
| | |||||
* | More flexible handling of the --python argument | Paul Moore | 2022-07-28 | 1 | -12/+60 |
| | |||||
* | Add a --python option | Paul Moore | 2022-07-28 | 1 | -0/+15 |
| | |||||
* | Convert type hint comments into annotations | Diego Ramirez | 2021-06-07 | 1 | -4/+2 |
| | | | | Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com> Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> | ||||
* | Blacken src/pip/_internal/cli directory | Jon Dufresne | 2021-02-21 | 1 | -9/+8 |
| | | | | | | | | | | In autocompletion.py, the should_list_installed boolean expression was flipped to workaround upstream black bug: https://github.com/psf/black/issues/1629 The bug makes black fail to stabilize formatting when the list isn't the last piece of the expression. | ||||
* | Merge pull request #9606 from hexagonrecursion/fstr | Pradyun Gedam | 2021-02-21 | 1 | -1/+1 |
|\ | |||||
| * | Convert more str.format() calls to f-strings | Andrey Bienkowski | 2021-02-13 | 1 | -1/+1 |
| | | |||||
* | | Remove typing.TYPE_CHECKING guards | Jon Dufresne | 2021-02-19 | 1 | -5/+1 |
| | | | | | | | | | | | | | | | | | | | | | | 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 typing | Jon Dufresne | 2021-02-18 | 1 | -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 keyword-only arguments | Jon Dufresne | 2021-01-29 | 1 | -9/+7 |
|/ | | | | | | | | | | | | | | | | | | | https://www.python.org/dev/peps/pep-3102/ Replaces the pattern: self.name = kwargs.pop('name') Keyword-only arguments offer some advantages: - In the event of a typo or misuse, a more informative error is presented to the programmer. - More self documenting and makes interfaces more explicit. - They more easily allow explicit typing. Adding types to ConfigOptionParser required changing some call sites to pass arguments without using a dict due to mypy bug: https://github.com/python/mypy/issues/9676 | ||||
* | Use f-strings for simple string formatting | Jon Dufresne | 2020-12-25 | 1 | -2/+2 |
| | | | | | | | 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. | ||||
* | Remove obsolete "# type: ignore" comments | Jon Dufresne | 2020-12-23 | 1 | -1/+1 |
| | | | | | | | Obsolete since dropping Python 2 support. Add the mypy setting "warn_unused_ignores = True" to catch these earlier. | ||||
* | Prepare isort for black | Pradyun Gedam | 2020-09-23 | 1 | -4/+1 |
| | |||||
* | Update linter: isort | Pradyun Gedam | 2020-09-23 | 1 | -1/+1 |
| | |||||
* | Convert the remaining '%' formatters to '.format'. Fixes #6973. | Jason R. Coombs | 2020-03-06 | 1 | -1/+1 |
| | |||||
* | string_formatting | Deepak Sharma | 2020-01-30 | 1 | -2/+2 |
| | |||||
* | Remove get_summaries(). | Chris Jerdonek | 2019-07-27 | 1 | -7/+5 |
| | |||||
* | Change isort multi_line_output to 3 | Pradyun Gedam | 2019-07-22 | 1 | -2/+5 |
| | |||||
* | Refactor out a get_pip_version() function into misc.py. | Chris Jerdonek | 2019-06-23 | 1 | -8/+2 |
| | |||||
* | remove #noqa: F401 | Maxim Kurnikov | 2019-02-22 | 1 | -1/+1 |
| | |||||
* | add type annotations for pip/_internal/cli/ | Maxim Kurnikov | 2018-12-03 | 1 | -2/+10 |
| | |||||
* | Change the import names as renamed | Pradyun Gedam | 2018-08-05 | 1 | -1/+1 |
| | |||||
* | Move logic for parsing commands into a main_parser | Pradyun Gedam | 2018-08-05 | 1 | -2/+47 |
| | |||||
* | Move creation of CLI parser into pip._internal.cli | Pradyun Gedam | 2018-08-05 | 1 | -0/+51 |