mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
removed unused imports from conf.py
This commit is contained in:
committed by
Paul Robinson
parent
317eaeda93
commit
627c2cfe8e
17
docs/conf.py
17
docs/conf.py
@ -13,10 +13,9 @@
|
|||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
import os
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
import sys
|
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath(".."))
|
import os
|
||||||
|
|
||||||
DIR = os.path.dirname(__file__)
|
DIR = os.path.dirname(__file__)
|
||||||
with open(os.path.join(DIR, "../setup.py"), "r") as f:
|
with open(os.path.join(DIR, "../setup.py"), "r") as f:
|
||||||
@ -37,13 +36,7 @@ extensions = [
|
|||||||
"sphinx.ext.autodoc",
|
"sphinx.ext.autodoc",
|
||||||
"sphinx.ext.doctest",
|
"sphinx.ext.doctest",
|
||||||
"sphinx.ext.intersphinx",
|
"sphinx.ext.intersphinx",
|
||||||
"sphinx.ext.todo",
|
"sphinx_rtd_theme",
|
||||||
"sphinx.ext.coverage",
|
|
||||||
"sphinx.ext.mathjax",
|
|
||||||
"sphinx.ext.ifconfig",
|
|
||||||
"sphinx.ext.viewcode",
|
|
||||||
"sphinx.ext.githubpages",
|
|
||||||
"sphinx.ext.napoleon",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
@ -324,6 +317,7 @@ doctest_default_flags = (
|
|||||||
# Mock out dependencies that are unbuildable on readthedocs, as recommended here:
|
# Mock out dependencies that are unbuildable on readthedocs, as recommended here:
|
||||||
# https://docs.readthedocs.io/en/rel/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
|
# https://docs.readthedocs.io/en/rel/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
|
||||||
|
|
||||||
|
import sys
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
# Add new modules to mock here (it should be the same list as those excluded in setup.py)
|
# Add new modules to mock here (it should be the same list as those excluded in setup.py)
|
||||||
@ -333,7 +327,6 @@ MOCK_MODULES = [
|
|||||||
"fastecdsa.encoding.sec1",
|
"fastecdsa.encoding.sec1",
|
||||||
]
|
]
|
||||||
sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES)
|
sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES)
|
||||||
|
|
||||||
# -- Extension configuration -------------------------------------------------
|
# -- Extension configuration -------------------------------------------------
|
||||||
|
|
||||||
# -- Options for todo extension ----------------------------------------------
|
# -- Options for todo extension ----------------------------------------------
|
||||||
@ -346,4 +339,4 @@ todo_include_todos = True
|
|||||||
# Allow duplicate object descriptions
|
# Allow duplicate object descriptions
|
||||||
nitpicky = False
|
nitpicky = False
|
||||||
nitpick_ignore = [("py:class", "type")]
|
nitpick_ignore = [("py:class", "type")]
|
||||||
suppress_warnings = ["app.add_directive"]
|
suppress_warnings = ["app.add_directive"]
|
||||||
Reference in New Issue
Block a user