Skip to content

Commit cc35695

Browse files
committed
Reformat conf.py with black.
1 parent 017a832 commit cc35695

File tree

1 file changed

+29
-31
lines changed

1 file changed

+29
-31
lines changed

docs/conf.py

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@
1313
# If extensions (or modules to document with autodoc) are in another directory,
1414
# add these directories to sys.path here. If the directory is relative to the
1515
# documentation root, use os.path.abspath to make it absolute, like shown here.
16-
17-
sys.path.insert(0, os.path.join(os.path.abspath('..'), 'src'))
16+
sys.path.insert(0, os.path.join(os.path.abspath(".."), "src"))
1817

1918

2019
# -- Project information -----------------------------------------------------
2120

22-
project = 'websockets'
23-
copyright = f'2013-{datetime.date.today().year}, Aymeric Augustin and contributors'
24-
author = 'Aymeric Augustin'
21+
project = "websockets"
22+
copyright = f"2013-{datetime.date.today().year}, Aymeric Augustin and contributors"
23+
author = "Aymeric Augustin"
2524

2625
# The full version, including alpha/beta/rc tags
27-
release = '9.1'
26+
release = "9.1"
2827

2928

3029
# -- General configuration ---------------------------------------------------
@@ -33,53 +32,52 @@
3332
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3433
# ones.
3534
extensions = [
36-
'sphinx.ext.autodoc',
37-
'sphinx.ext.intersphinx',
38-
'sphinx.ext.viewcode',
39-
'sphinx_autodoc_typehints',
40-
'sphinxcontrib.spelling',
41-
'sphinxcontrib_trio',
35+
"sphinx.ext.autodoc",
36+
"sphinx.ext.intersphinx",
37+
"sphinx.ext.viewcode",
38+
"sphinx_autodoc_typehints",
39+
"sphinxcontrib.spelling",
40+
"sphinxcontrib_trio",
4241
]
4342

44-
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
43+
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
4544

4645
# Add any paths that contain templates here, relative to this directory.
47-
templates_path = ['_templates']
46+
templates_path = ["_templates"]
4847

4948
# List of patterns, relative to source directory, that match files and
5049
# directories to ignore when looking for source files.
5150
# This pattern also affects html_static_path and html_extra_path.
52-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
51+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5352

5453

5554
# -- Options for HTML output -------------------------------------------------
5655

5756
# The theme to use for HTML and HTML Help pages. See the documentation for
5857
# a list of builtin themes.
59-
#
60-
html_theme = 'alabaster'
58+
html_theme = "alabaster"
6159

6260
html_theme_options = {
63-
'logo': 'websockets.svg',
64-
'description': 'A library for building WebSocket servers and clients in Python with a focus on correctness and simplicity.',
65-
'github_button': True,
66-
'github_type': 'star',
67-
'github_user': 'aaugustin',
68-
'github_repo': 'websockets',
69-
'tidelift_url': 'https://tidelift.com/subscription/pkg/pypi-websockets?utm_source=pypi-websockets&utm_medium=referral&utm_campaign=docs',
61+
"logo": "websockets.svg",
62+
"description": "A library for building WebSocket servers and clients in Python with a focus on correctness and simplicity.",
63+
"github_button": True,
64+
"github_type": "star",
65+
"github_user": "aaugustin",
66+
"github_repo": "websockets",
67+
"tidelift_url": "https://tidelift.com/subscription/pkg/pypi-websockets?utm_source=pypi-websockets&utm_medium=referral&utm_campaign=docs",
7068
}
7169

7270
html_sidebars = {
73-
'**': [
74-
'about.html',
75-
'searchbox.html',
76-
'navigation.html',
77-
'relations.html',
78-
'donate.html',
71+
"**": [
72+
"about.html",
73+
"searchbox.html",
74+
"navigation.html",
75+
"relations.html",
76+
"donate.html",
7977
]
8078
}
8179

8280
# Add any paths that contain custom static files (such as style sheets) here,
8381
# relative to this directory. They are copied after the builtin static files,
8482
# so a file named "default.css" will overwrite the builtin "default.css".
85-
html_static_path = ['_static']
83+
html_static_path = ["_static"]

0 commit comments

Comments
 (0)