Skip to content

Commit 5131802

Browse files
committed
Use sphinx-prompt
1 parent e08d144 commit 5131802

File tree

6 files changed

+326
-271
lines changed

6 files changed

+326
-271
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ repos:
4242
- id: teyit
4343

4444
- repo: https://github.com/astral-sh/ruff-pre-commit
45-
rev: v0.5.4
45+
rev: v0.5.7
4646
hooks:
4747
- id: ruff
4848
language: system
4949
exclude: ^(?!pandoc_numbering/.*.py)
5050

5151
- repo: https://github.com/psf/black
52-
rev: 24.4.2
52+
rev: 24.8.0
5353
hooks:
5454
- id: black-jupyter
5555
args: [--config=pyproject.toml, pandoc_numbering, tests]
@@ -58,17 +58,17 @@ repos:
5858
rev: v1.1.1
5959
hooks:
6060
- id: doc8
61-
args: [docs, README.md, -e, .rst, -e, .md]
61+
files: \.(rst|md)$
6262

6363
- repo: https://github.com/pre-commit/mirrors-mypy
64-
rev: v1.11.0
64+
rev: v1.11.1
6565
hooks:
6666
- id: mypy
6767
language: system
6868
exclude: ^(?!pandoc_numbering/.*.py)
6969

7070
- repo: https://github.com/pycqa/flake8
71-
rev: 7.1.0
71+
rev: 7.1.1
7272
hooks:
7373
- id: flake8
7474
language: system
@@ -82,7 +82,7 @@ repos:
8282
exclude: ^(?!pandoc_numbering/.*.py)
8383

8484
- repo: https://github.com/asottile/pyupgrade
85-
rev: v3.16.0
85+
rev: v3.17.0
8686
hooks:
8787
- id: pyupgrade
8888
language: system

README.md

+19-29
Large diffs are not rendered by default.

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# Add any Sphinx extension module names here, as strings. They can be
4646
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4747
# ones.
48-
extensions = ["myst_parser"]
48+
extensions = ["myst_parser", "sphinx_prompt", "sphinx_copybutton"]
4949

5050
# Add any paths that contain templates here, relative to this directory.
5151
templates_path = []

docs/usage.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Usage
33

44
Run `pandoc` using ``pandoc-numbering`` filter:
55

6-
.. code-block:: shell
6+
.. prompt:: bash
77

8-
$ pandoc --filter pandoc-numbering
8+
pandoc --filter pandoc-numbering
99

1010

1111
.. toctree::

0 commit comments

Comments
 (0)