Skip to content

Commit

Permalink
Update extlinks strings to use a format string (#555)
Browse files Browse the repository at this point in the history
This addresses a warning in Sphinx 5, regarding the missing` %s` in
these strings.

```
extlinks: Sphinx-6.0 will require a caption string to contain exactly one '%s' and all other '%' need to be escaped as '%%'.
```
  • Loading branch information
mayeut committed Jun 5, 2022
1 parent 33255b7 commit 0ffdf31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -52,8 +52,8 @@
exclude_patterns = ["_build"]

extlinks = {
"issue": ("https://github.com/pypa/packaging/issues/%s", "#"),
"pull": ("https://github.com/pypa/packaging/pull/%s", "PR #"),
"issue": ("https://github.com/pypa/packaging/issues/%s", "#%s"),
"pull": ("https://github.com/pypa/packaging/pull/%s", "PR #%s"),
}
# -- Options for HTML output --------------------------------------------------

Expand Down

0 comments on commit 0ffdf31

Please sign in to comment.