From 60a94cd0bb87826d0cfc92e4f7c7c2ba8d6ba4f1 Mon Sep 17 00:00:00 2001 From: Zac Hatfield-Dodds Date: Sun, 12 Jun 2022 12:18:57 -0700 Subject: [PATCH] Update sphinx config --- hypothesis-python/docs/changes.rst | 2 +- hypothesis-python/docs/conf.py | 20 ++++++++++---------- requirements/tools.txt | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hypothesis-python/docs/changes.rst b/hypothesis-python/docs/changes.rst index 0c1c3a1cb0..4c25592997 100644 --- a/hypothesis-python/docs/changes.rst +++ b/hypothesis-python/docs/changes.rst @@ -2637,7 +2637,7 @@ Thanks to Zac Hatfield-Dodds and Nikita Sobolev for this feature! This patch adds two new :doc:`ghostwriters ` to test :wikipedia:`binary operations `, like :func:`python:operator.add`, -and Numpy :doc:`ufuncs ` and :doc:`gufuncs +and Numpy :doc:`ufuncs ` and :doc:`gufuncs ` like :data:`np.matmul() `. .. _v5.26.1: diff --git a/hypothesis-python/docs/conf.py b/hypothesis-python/docs/conf.py index fb21594bce..ff469b2175 100644 --- a/hypothesis-python/docs/conf.py +++ b/hypothesis-python/docs/conf.py @@ -65,7 +65,7 @@ def setup(app): sys.modules["xps"] = mod -language = None +language = "en" exclude_patterns = ["_build"] @@ -103,15 +103,15 @@ def setup(app): # See http://sphinx-doc.org/ext/extlinks.html _repo = "https://github.com/HypothesisWorks/hypothesis/" extlinks = { - "commit": (_repo + "commit/%s", "commit "), - "gh-file": (_repo + "blob/master/%s", ""), - "gh-link": (_repo + "%s", ""), - "issue": (_repo + "issues/%s", "issue #"), - "pull": (_repo + "pull/%s", "pull request #"), - "pypi": ("https://pypi.org/project/%s/", ""), - "bpo": ("https://bugs.python.org/issue%s", "bpo-"), - "xp-ref": ("https://data-apis.org/array-api/latest/API_specification/%s", ""), - "wikipedia": ("https://en.wikipedia.org/wiki/%s", ""), + "commit": (_repo + "commit/%s", "commit %s"), + "gh-file": (_repo + "blob/master/%s", "%s"), + "gh-link": (_repo + "%s", "%s"), + "issue": (_repo + "issues/%s", "issue #%s"), + "pull": (_repo + "pull/%s", "pull request #%s"), + "pypi": ("https://pypi.org/project/%s/", "%s"), + "bpo": ("https://bugs.python.org/issue%s", "bpo-%s"), + "xp-ref": ("https://data-apis.org/array-api/latest/API_specification/%s", "%s"), + "wikipedia": ("https://en.wikipedia.org/wiki/%s", "%s"), } # -- Options for HTML output ---------------------------------------------- diff --git a/requirements/tools.txt b/requirements/tools.txt index 58b5e94d07..f6c0bf3026 100644 --- a/requirements/tools.txt +++ b/requirements/tools.txt @@ -236,7 +236,7 @@ pygments==2.12.0 # sphinx pyparsing==3.0.9 # via packaging -pyright==1.1.254 +pyright==1.1.249 # via -r requirements/tools.in pytest==7.1.2 # via -r requirements/tools.in