API Reference¶
In addition to the Flake8 plugin, the following public API is available
to allow other plugins to build on top of flake8-sphinx-links
.
Classes:
|
Flake8 plugin to check docstrings for double backticked strings which should be links to the Python documentation. |
|
AST visitor to check docstrings for double backticked strings which should be links to the Python documentation. |
Data:
List of keywords which should become |
|
List of keywords which should become |
|
List of keywords that should become |
|
Regex to match keywords that should be Sphinx links. |
-
class
Plugin
(tree)[source]¶ -
Flake8 plugin to check docstrings for double backticked strings which should be links to the Python documentation.
-
class
Visitor
[source]¶ Bases:
Visitor
AST visitor to check docstrings for double backticked strings which should be links to the Python documentation.
-
exc
= ['BaseException', 'Exception', 'ArithmeticError', 'BufferError', 'LookupError', 'AssertionError', 'AttributeError', 'EOFError', 'FloatingPointError', 'GeneratorExit', 'ImportError', 'ModuleNotFoundError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'MemoryError', 'NameError', 'NotImplementedError', 'OSError', 'OverflowError', 'RecursionError', 'ReferenceError', 'RuntimeError', 'StopIteration', 'StopAsyncIteration', 'SyntaxError', 'IndentationError', 'TabError', 'SyntaxError', 'IndentationError', 'TabError', 'SystemError', 'SystemExit', 'TypeError', 'UnboundLocalError', 'UnicodeError', 'UnicodeEncodeError', 'UnicodeDecodeError', 'UnicodeTranslateError', 'ValueError', 'ZeroDivisionError', 'EnvironmentError', 'IOError', 'WindowsError', 'BlockingIOError', 'ChildProcessError', 'ConnectionError', 'BrokenPipeError', 'ConnectionAbortedError', 'ConnectionRefusedError', 'ConnectionResetError', 'FileExistsError', 'FileNotFoundError', 'InterruptedError', 'IsADirectoryError', 'NotADirectoryError', 'PermissionError', 'ProcessLookupError', 'TimeoutError', 'Warning', 'UserWarning', 'DeprecationWarning', 'PendingDeprecationWarning', 'SyntaxWarning', 'RuntimeWarning', 'FutureWarning', 'ImportWarning', 'UnicodeWarning', 'BytesWarning', 'ResourceWarning']¶ -
List of keywords which should become
:py:exc:`<keyword>`
-
py_obj
= ['True', 'False', 'None', 'NotImplemented', 'Ellipsis', '__debug__', 'quit', 'exit', 'credits', 'license']¶ -
List of keywords which should become
:py:obj:`<keyword>`
-
py_obj_python
= ['copyright']¶ -
List of keywords that should become
:py:obj:`python:<keyword>`
to prevent conflict with Sphinx objects.