diff options
author | Georg Brandl <georg@python.org> | 2014-10-30 21:35:55 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-30 21:35:55 (GMT) |
commit | d4754b0a9d29c7cc82d069475a09309b8730eac6 (patch) | |
tree | 89c35c444e03c29400e8eb9d0a54e544835e465c | |
parent | f3f50526cc5df86b9de49ad355292d44a0715132 (diff) | |
download | cpython-d4754b0a9d29c7cc82d069475a09309b8730eac6.zip cpython-d4754b0a9d29c7cc82d069475a09309b8730eac6.tar.gz cpython-d4754b0a9d29c7cc82d069475a09309b8730eac6.tar.bz2 |
rstlint: add more directives we use
-rwxr-xr-x | Doc/tools/rstlint.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 0c19003..9e25571 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -15,7 +15,6 @@ import os import re import sys import getopt -import subprocess from os.path import join, splitext, abspath, exists from collections import defaultdict @@ -28,15 +27,16 @@ directives = [ 'parsed-literal', 'pull-quote', 'raw', 'replace', 'restructuredtext-test-directive', 'role', 'rubric', 'sectnum', 'sidebar', 'table', 'target-notes', 'tip', 'title', 'topic', 'unicode', 'warning', - # Sphinx custom ones + # Sphinx and Python docs custom ones 'acks', 'attribute', 'autoattribute', 'autoclass', 'autodata', 'autoexception', 'autofunction', 'automethod', 'automodule', 'centered', 'cfunction', 'class', 'classmethod', 'cmacro', 'cmdoption', 'cmember', 'code-block', 'confval', 'cssclass', 'ctype', 'currentmodule', 'cvar', - 'data', 'deprecated', 'describe', 'directive', 'doctest', 'envvar', 'event', - 'exception', 'function', 'glossary', 'highlight', 'highlightlang', 'index', - 'literalinclude', 'method', 'module', 'moduleauthor', 'productionlist', - 'program', 'role', 'sectionauthor', 'seealso', 'sourcecode', 'staticmethod', + 'data', 'decorator', 'decoratormethod', 'deprecated-removed', + 'deprecated(?!-removed)', 'describe', 'directive', 'doctest', 'envvar', + 'event', 'exception', 'function', 'glossary', 'highlight', 'highlightlang', + 'impl-detail', 'index', 'literalinclude', 'method', 'miscnews', 'module', + 'moduleauthor', 'opcode', 'pdbcommand', 'productionlist', 'tabularcolumns', 'testcode', 'testoutput', 'testsetup', 'toctree', 'todo', 'todolist', 'versionadded', 'versionchanged' ] |