From 104f997ba8c95292b04c2dc7a2241d7621b51af8 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 16 Jul 2022 10:28:06 -0700 Subject: [PATCH 1/7] src/sage/doctest/sources.py: Remove trailing spaces in ... --- src/sage/doctest/sources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/doctest/sources.py b/src/sage/doctest/sources.py index 3136139e10a..6321e73a5e8 100644 --- a/src/sage/doctest/sources.py +++ b/src/sage/doctest/sources.py @@ -764,8 +764,8 @@ def _test_enough_doctests(self, check_extras=True, verbose=True): INPUT: - ``check_extras`` -- bool (default ``True``), whether to check if - doctests are created that do not correspond to either a ``sage: `` - or a ``>>> `` prompt + doctests are created that do not correspond to either a ``sage:`` + or a ``>>>`` prompt - ``verbose`` -- bool (default ``True``), whether to print offending line numbers when there are missing or extra tests From 53f10b4550de55c60acf7d8ef272b310af7c2509 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 16 Jul 2022 13:33:07 -0700 Subject: [PATCH 2/7] src/tox.ini (rst): Exclude sage/graphs/graph_plot.py --- src/tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tox.ini b/src/tox.ini index e95a6dfd466..e06d3b68186 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -218,7 +218,9 @@ extend-ignore = # Ignore RST306 Unknown target name -- because of references to the global bibliography RST306 exclude = + # Avoid errors by exclude files with generated docstring portions such as {PLOT_OPTIONS_TABLE} sage/combinat/designs/database.py + sage/graphs/graph_plot.py sage/misc/sagedoc.py [pytest] From ce10cae6f4b5854b59e46408686adc085138a8f1 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 16 Jul 2022 13:38:19 -0700 Subject: [PATCH 3/7] src/sage/repl/interpreter.py: Use directive 'attr' instead of 'attribute' --- src/sage/repl/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/repl/interpreter.py b/src/sage/repl/interpreter.py index d7ba014361d..b6a0e5a5b56 100644 --- a/src/sage/repl/interpreter.py +++ b/src/sage/repl/interpreter.py @@ -463,7 +463,7 @@ def __init__(self, *args, **kwds): Initialize this class. All of the arguments get passed to :meth:`PrefilterTransformer.__init__`. - .. attribute:: temporary_objects + .. attr:: temporary_objects a list of hold onto interface objects and keep them from being garbage collected From 1bd6e3c9f5fbfbf8083be9fdf98ca335c6e0c1d7 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 16 Jul 2022 13:39:19 -0700 Subject: [PATCH 4/7] .github/workflows/lint.yml: Remove continue-on-error for lint-rst --- .github/workflows/lint.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8456f3666dc..811a61cc928 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -50,5 +50,3 @@ jobs: run: pip install tox - name: Lint using tox -e rst run: tox -e rst - # Until all errors are fixed: - continue-on-error: true From 27040371a15a66f3e75d97de2f30662564e9fa7f Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 16 Jul 2022 14:07:22 -0700 Subject: [PATCH 5/7] src/tox.ini (rst): Add rst directive attr --- src/tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tox.ini b/src/tox.ini index e06d3b68186..d4d756979b9 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -206,6 +206,7 @@ rst-roles = trac, wikipedia rst-directives = + attr, automethod, autofunction, toctree, From 2f29dff0787d154d84ca80fb504250c41dd4ced2 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 16 Jul 2022 21:33:27 -0700 Subject: [PATCH 6/7] Revert "src/sage/repl/interpreter.py: Use directive 'attr' instead of 'attribute'" This reverts commit ce10cae6f4b5854b59e46408686adc085138a8f1. --- src/sage/repl/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/repl/interpreter.py b/src/sage/repl/interpreter.py index b6a0e5a5b56..d7ba014361d 100644 --- a/src/sage/repl/interpreter.py +++ b/src/sage/repl/interpreter.py @@ -463,7 +463,7 @@ def __init__(self, *args, **kwds): Initialize this class. All of the arguments get passed to :meth:`PrefilterTransformer.__init__`. - .. attr:: temporary_objects + .. attribute:: temporary_objects a list of hold onto interface objects and keep them from being garbage collected From 3b9399d7164f7b792b8942d8159571d5de0cc8c3 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 16 Jul 2022 21:34:07 -0700 Subject: [PATCH 7/7] src/tox.ini (rst): Add rst directive attribute (fixup) --- src/tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tox.ini b/src/tox.ini index d4d756979b9..ce9f56b9496 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -206,7 +206,7 @@ rst-roles = trac, wikipedia rst-directives = - attr, + attribute, automethod, autofunction, toctree,