Commit Graph

25 Commits

Author SHA1 Message Date
Wu Zhenyu dba399fe6a Fix #12166
- tests expected results indendation was off
- add bugfix news entry
2023-10-07 15:15:51 +08:00
Wu Zhenyu fb454572b2
Fix `pip completion --zsh` 2023-04-04 15:52:05 +08:00
Frost Ming 6a1ed5c0f4
Add completion script for powershell (#9025) 2022-04-15 09:32:42 +01:00
Pradyun Gedam 8e2e1964a4
Blacken src/pip/_internal/commands/
Progresses the black formatting of the codebase further.
2021-07-23 17:54:08 +01:00
Harutaka Kawamura 2de3af1747
Complete type annotations in `pip/_internal/commands` (#10182) 2021-07-23 18:27:43 +08:00
Jon Dufresne 0945809afc Remove typing.TYPE_CHECKING guards
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
2021-02-19 18:34:21 -08:00
Jon Dufresne a6392bd62e Replace pip._internal.utils.typing with stdlib typing
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.
2021-02-18 19:09:13 -08:00
Jon Dufresne f32adaf09b Remove __future__ imports
Unnecessary since dropping Python 2.
2020-12-24 08:38:09 -08:00
Pradyun Gedam 25ab172b55
Update linter: isort 2020-09-23 19:52:28 +05:30
gutsytechster b82516c9ca fix(_internal/commands): Define a default add_option to child commands 2020-05-23 14:55:37 +05:30
gutsytechster 72a42197a4 refactor(commands): Add method add_options and remove __init__
This removes the __init__ method of child classes and defines
explicit method for adding command options.
2020-05-23 14:50:57 +05:30
Devesh Kumar Singh c83c2804ca Always return SUCCESS from commands.completion.run 2020-05-15 16:57:31 +05:30
Devesh Kumar Singh 35ea5a6d5f Remove Any type from run function 2020-04-20 03:19:43 +05:30
Devesh Kumar Singh ae8391b4b7 Type annotations for completion and debug in commands 2020-04-15 01:17:53 +05:30
Jason R. Coombs 6282a307dc 👹 Feed the hobgoblins (delint). 2020-03-06 12:43:10 -05:00
Jason R. Coombs 3511d3d493 Convert the remaining '%' formatters to '.format'. Fixes #6973. 2020-03-06 12:43:03 -05:00
Deepak Sharma d31cf696e8 string_formatting 2020-01-30 20:33:00 +05:30
Maxim Kurnikov 3692097cca add per-file disallow_untyped_defs=False, and set it to True globally 2019-09-29 23:31:15 +02:00
Chris Hunt df36ddfb0d Merge branch 'master' into maint/merge-5924 2019-08-06 23:42:04 -04:00
Chris Jerdonek 1f09e67f34 Only import a Command class when it is actually needed.
This resulted in an approximate 24% speed-up of a vanilla `pip`
invocation on one system (0.477 secs before, 0.363 secs after).
2019-07-26 23:30:26 -04:00
Ani Hayrapetyan 5643475d1c pip autocompletion should silence of KeyboardInterrupts 2018-10-26 12:11:11 -04:00
Pradyun Gedam 21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +05:30
Pradyun Gedam 8d45e0e647
Move basecommand to pip._internal.cli 2018-07-29 18:26:28 +05:30
Dustin Ingram ff5b2013a0 Use correct executable name for completion command (#4755) 2017-10-12 10:59:53 +05:30
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Renamed from pip/commands/completion.py (Browse further)