Skip to content

Commit 05ec56d

Browse files
committed
Use backticks for formatting
1 parent 2d3d365 commit 05ec56d

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/blurb/_add.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424

2525

2626
def add(*, issue: str | None = None, section: str | None = None):
27-
"""Add a blurb (a Misc/NEWS.d/next entry) to the current CPython repo.
27+
"""Add a blurb (a `Misc/NEWS.d/next` entry) to the current CPython repo.
2828
29-
Use -i/--issue to specify a GitHub issue number or link, e.g.:
29+
Use `-i`/`--issue` to specify a GitHub issue number or link, e.g.:
3030
3131
blurb add -i 12345
3232
# or
3333
blurb add -i https://github.com/python/cpython/issues/12345
3434
35-
Use -s/--section to specify the section name (case-insensitive), e.g.:
35+
Use `-s`/`--section` to specify the section name (case-insensitive), e.g.:
3636
3737
blurb add -s Library
3838
# or

src/blurb/_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def build_parser() -> argparse.ArgumentParser:
3939

4040
parser = argparse.ArgumentParser(
4141
prog='blurb',
42-
description='Management tool for CPython Misc/NEWS and Misc/NEWS.d entries.',
43-
epilog="If blurb is run without any arguments, this is equivalent to 'blurb add'.",
42+
description='Management tool for CPython `Misc/NEWS` and `Misc/NEWS.d` entries.',
43+
epilog='If blurb is run without any arguments, this is equivalent to `blurb add`.',
4444
)
4545
parser.add_argument(
4646
'-V',

src/blurb/_merge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515

1616
def merge(output: str | None = None, *, forced: bool = False) -> None:
17-
"""Merge all blurbs together into a single Misc/NEWS file.
17+
"""Merge all blurbs together into a single `Misc/NEWS` file.
1818
1919
Optional output argument specifies where to write to.
20-
Default is <cpython-root>/Misc/NEWS.
20+
Default is `<cpython-root>/Misc/NEWS`.
2121
2222
If overwriting, blurb merge will prompt you to make sure it's okay.
23-
To force it to overwrite, use -f.
23+
To force it to overwrite, use `-f`.
2424
"""
2525
if output:
2626
output = os.path.join(original_dir, output)

src/blurb/_populate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def populate() -> None:
10-
"""Creates and populates the Misc/NEWS.d directory tree."""
10+
"""Creates and populates the `Misc/NEWS.d` directory tree."""
1111
os.chdir('Misc')
1212
os.makedirs('NEWS.d/next', exist_ok=True)
1313

0 commit comments

Comments
 (0)