Skip to content

Commit 749caea

Browse files
committed
Fix lint issues
horizontal-tab and unbalanced-inline-literals-delimiters
1 parent cdd443e commit 749caea

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎source/glossary.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Glossary
290290
<https://github.com/pypa>`_, and discuss issues on the
291291
`distutils-sig mailing list
292292
<https://mail.python.org/mailman3/lists/distutils-sig.python.org/>`_
293-
and `the Python Discourse forum <https://discuss.python.org/c/packaging>`__.
293+
and `the Python Discourse forum <https://discuss.python.org/c/packaging>`__.
294294

295295

296296
Python Package Index (PyPI)

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ so initialize the command-line interface here:
9191

9292
.. code-block:: python
9393
94-
if __name__ == "__main__":
95-
from greetings.cli import app
96-
app()
94+
if __name__ == "__main__":
95+
from greetings.cli import app
96+
app()
9797
9898
.. note::
9999

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

113113
.. code-block:: toml
114114
115-
[project.scripts]
116-
greet = "greetings.cli:app"
115+
[project.scripts]
116+
greet = "greetings.cli:app"
117117
118118
Now, the project's source tree is ready to be transformed into a :term:`distribution package <Distribution Package>`,
119119
which makes it installable.
@@ -134,14 +134,14 @@ Let's test it:
134134

135135
.. code-block:: console
136136
137-
$ greet
138-
Greetings, friend!
139-
$ greet --doctor Brennan
140-
Greetings, Dr. Brennan!
141-
$ greet --title Ms. Parks
142-
Greetings, Ms. Parks!
143-
$ greet --title Mr.
144-
Greetings, Mr. mr!
137+
$ greet
138+
Greetings, friend!
139+
$ greet --doctor Brennan
140+
Greetings, Dr. Brennan!
141+
$ greet --title Ms. Parks
142+
Greetings, Ms. Parks!
143+
$ greet --title Mr.
144+
Greetings, Mr. mr!
145145
146146
Since this example uses ``typer``, you could now also get an overview of the program's usage by calling it with
147147
the ``--help`` option, or configure completions via the ``--install-completion`` option.
@@ -151,7 +151,7 @@ To just run the program without installing it permanently, use ``pipx run``, whi
151151

152152
.. code-block:: console
153153
154-
$ pipx run --spec . greet --doctor
154+
$ pipx run --spec . greet --doctor
155155
156156
This syntax is a bit impractical, however; as the name of the entry point we defined above does not match the package name,
157157
we need to state explicitly which executable script to run (even though there is only one in existence).

‎source/specifications/glob-patterns.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Valid glob patterns
1515
For PyPA purposes, a *valid glob pattern* MUST be a string matched against
1616
filesystem entries as specified below:
1717

18-
- Alphanumeric characters, spaces (`` ``), underscores (``_``), hyphens (``-``),
18+
- Alphanumeric characters, spaces (:literal:`\ `), underscores (``_``), hyphens (``-``),
1919
and dots (``.``) MUST be matched verbatim.
2020

2121
- Special glob characters: ``*``, ``?``, ``**`` and character ranges: ``[]``

0 commit comments

Comments
 (0)