Skip to content

Commit 5d66488

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ad40f78 commit 5d66488

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/html/development/architecture/command-line-interface.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Lastly, ``RequirementCommand``, which inherits from ``IndexGroupCommand`` is the
7070
for those commands which make use of requirements in any form, like ``pip install``.
7171

7272
In addition to the previous classes, a last mixin class must be mentioned, from which
73-
``Command`` as well as ``SessionCommandMixin`` inherit: ``CommandContextMixIn``, in
73+
``Command`` as well as ``SessionCommandMixin`` inherit: ``CommandContextMixIn``, in
7474
charge of the command's context.
7575

7676
In the following command tree we can see the hierarchy defined for the different pip's
@@ -91,14 +91,14 @@ The set of shared options are defined in `cmdoptions.py <https://github.com/pypa
9191
module, as well as the *general options* and *package index options* groups of options
9292
we see when we call a command's help, or the ``pip index``'s help message respectively.
9393
All options are defined in terms of functions that return `optparse.Option <https://docs.python.org/3/library/optparse.html#optparse.Option>`_
94-
instances once called, while specific groups of options, like *Config Options* for
95-
``pip config`` are defined in each specific command file (see for example the
94+
instances once called, while specific groups of options, like *Config Options* for
95+
``pip config`` are defined in each specific command file (see for example the
9696
`configuration.py <https://github.com/pypa/pip/blob/main/src/pip/_internal/commands/configuration.py>`_).
9797

9898
Argument parsing
9999
----------------
100100

101-
The main entrypoint for the application is defined in the ``main`` function in the
101+
The main entrypoint for the application is defined in the ``main`` function in the
102102
`main.py <https://github.com/pypa/pip/blob/main/src/pip/_internal/cli/main.py>`_ module.
103103
This function is in charge of the `autocompletion <https://github.com/pypa/pip/blob/main/src/pip/_internal/cli/autocompletion.py>`_,
104104
calling the ``parse_command`` function and creating and running the subprograms
@@ -109,7 +109,7 @@ module, which defines the following two functions:
109109

110110
.. py:function:: parse_command()
111111
112-
Function in charge of the initial parse of ``pip``'s program. Creates the main parser (see
112+
Function in charge of the initial parse of ``pip``'s program. Creates the main parser (see
113113
the next function ``create_main_parser``) to extract the general options
114114
and the remaining arguments. For example, running ``pip --timeout=5 install --user INITools``
115115
will split ``['--timeout=5']`` as general option and ``['install', '--user', 'INITools']``

news/6831.doc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Update architecture documentation for command line interface.
1+
Update architecture documentation for command line interface.

0 commit comments

Comments
 (0)