Skip to content

Commit 08107d5

Browse files
committed
Fix tab to spaces, found by Sphinx Lint
1 parent e2a552e commit 08107d5

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

source/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Glossary
257257
<https://bitbucket.org/pypa>`_, and discuss issues on the
258258
`distutils-sig mailing list
259259
<https://mail.python.org/mailman3/lists/distutils-sig.python.org/>`_
260-
and `the Python Discourse forum <https://discuss.python.org/c/packaging>`__.
260+
and `the Python Discourse forum <https://discuss.python.org/c/packaging>`__.
261261

262262

263263
Python Package Index (PyPI)

source/guides/creating-command-line-tools.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ so initizalize the command-line interface here:
102102

103103
.. code-block:: python
104104
105-
if __name__ == "__main__":
106-
from greetings.cli import app
107-
app()
105+
if __name__ == "__main__":
106+
from greetings.cli import app
107+
app()
108108
109109
.. note::
110110

@@ -123,8 +123,8 @@ For the project to be recognised as a command-line tool, additionally a ``consol
123123

124124
.. code-block:: toml
125125
126-
[project.scripts]
127-
greet = "greetings.cli:app"
126+
[project.scripts]
127+
greet = "greetings.cli:app"
128128
129129
Now, the project's source tree is ready to be transformed into a :term:`distribution package <Distribution Package>`,
130130
which makes it installable.
@@ -145,12 +145,12 @@ Let's test it:
145145

146146
.. code-block:: console
147147
148-
$ greet --knight Lancelot
149-
Greetings, dear Sir Lancelot!
150-
$ greet --gender feminine Parks
151-
Greetings, dear Ms. Parks!
152-
$ greet --gender masculine
153-
Greetings, dear Mr. what's-his-name!
148+
$ greet --knight Lancelot
149+
Greetings, dear Sir Lancelot!
150+
$ greet --gender feminine Parks
151+
Greetings, dear Ms. Parks!
152+
$ greet --gender masculine
153+
Greetings, dear Mr. what's-his-name!
154154
155155
Since this example uses ``typer``, you could now also get an overview of the program's usage by calling it with
156156
the ``--help`` option, or configure completions via the ``--install-completion`` option.
@@ -160,7 +160,7 @@ To just run the program without installing it permanently, use ``pipx run``, whi
160160

161161
.. code-block:: console
162162
163-
$ pipx run --spec . greet --knight
163+
$ pipx run --spec . greet --knight
164164
165165
This syntax is a bit unpractical, however; as the name of the entry point we defined above does not match the package name,
166166
we need to state explicitly which executable script to run (even though there is only on in existence).

0 commit comments

Comments
 (0)