aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWolfgang E. Sanyer <WolfgangESanyer@gmail.com>2021-09-17 17:04:59 -0400
committerZac Medico <zmedico@gentoo.org>2021-09-19 20:57:12 -0700
commit3812225ace5db8c691cbe027d234a3e223972199 (patch)
tree393971cca00076ab902f2b6f6351394b50639c06 /doc
parentInclude INHERIT value in generated cache (diff)
downloadportage-3812225ace5db8c691cbe027d234a3e223972199.tar.gz
portage-3812225ace5db8c691cbe027d234a3e223972199.tar.bz2
portage-3812225ace5db8c691cbe027d234a3e223972199.zip
Reformat to use spaces instead of tabs. Also, use black
The following command was used to reformat: autopep8 --in-place --select=E101,E11,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133,E20,E211,E22,E224,E224,E226,E227,E228,E231,E241,E242,E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306,W291,W293,W391 -r . black was run as `black .`, using the default configurations Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/conf.py24
1 files changed, 14 insertions, 10 deletions
diff --git a/doc/api/conf.py b/doc/api/conf.py
index f79adc256..ed3aeb214 100644
--- a/doc/api/conf.py
+++ b/doc/api/conf.py
@@ -18,15 +18,17 @@ import os
from os import path as osp
import sys
-if osp.isfile(osp.abspath(osp.join(osp.dirname(__file__), "../../../../.portage_not_installed"))):
- sys.path.insert(0, osp.abspath(osp.join(osp.dirname(__file__), "../../../../lib")))
+if osp.isfile(
+ osp.abspath(osp.join(osp.dirname(__file__), "../../../../.portage_not_installed"))
+):
+ sys.path.insert(0, osp.abspath(osp.join(osp.dirname(__file__), "../../../../lib")))
import portage
# -- Project information -----------------------------------------------------
-project = 'portage'
-copyright = '2020, Gentoo Authors' # pylint: disable=redefined-builtin
-author = 'Gentoo Authors'
+project = "portage"
+copyright = "2020, Gentoo Authors" # pylint: disable=redefined-builtin
+author = "Gentoo Authors"
# The full version, including alpha/beta/rc tags
release = str(portage.VERSION)
@@ -37,8 +39,8 @@ release = str(portage.VERSION)
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
- 'sphinx.ext.autodoc',
- 'sphinx_epytext',
+ "sphinx.ext.autodoc",
+ "sphinx_epytext",
]
# Add any paths that contain templates here, relative to this directory.
@@ -55,12 +57,14 @@ extensions = [
# a list of builtin themes.
#
html_show_sourcelink = False
-html_theme = 'sphinxdoc'
+html_theme = "sphinxdoc"
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = []
-autodoc_default_options = dict((opt, True) for opt in
- filter(None, os.environ.get('SPHINX_APIDOC_OPTIONS', '').split(',')))
+autodoc_default_options = dict(
+ (opt, True)
+ for opt in filter(None, os.environ.get("SPHINX_APIDOC_OPTIONS", "").split(","))
+)