From e35f5a737f214f130a907b08cce0797eac1a7865 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 20 Nov 2019 23:20:29 +0100 Subject: [PATCH] docs: configure default_role=literal This configures the default role for interpreted text (single backticks), avoiding the need to check for / enforce double backticks. Fixes also one instance in the existing changelog: - Detect `pytest_` prefixed hooks using the internal plugin manager since ``pluggy`` is deprecating the ``implprefix`` argument to ``PluginManager``. (`#3487 `_) --- .pre-commit-config.yaml | 4 ---- doc/en/conf.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8210ef5d595..d4196152f46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,10 +37,6 @@ repos: hooks: - id: pyupgrade args: [--py3-plus] -- repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.4.0 - hooks: - - id: rst-backticks - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.740 hooks: diff --git a/doc/en/conf.py b/doc/en/conf.py index c0c71cf0581..1e93f8e201f 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -92,7 +92,7 @@ # The reST default role (used for this markup: `text`) to use for all documents. -# default_role = None +default_role = "literal" # If true, '()' will be appended to :func: etc. cross-reference text. # add_function_parentheses = True