Skip to content

Commit cb2d897

Browse files
committed
docs: Blacken conf.py
1 parent e99eeb4 commit cb2d897

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

docs/conf.py

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import sys
44
import time
5+
56
sys.path.insert(0, os.path.abspath(".."))
67
import tornado
78

@@ -20,8 +21,8 @@
2021
"sphinx.ext.viewcode",
2122
]
2223

23-
primary_domain = 'py'
24-
default_role = 'py:obj'
24+
primary_domain = "py"
25+
default_role = "py:obj"
2526

2627
autodoc_member_order = "bysource"
2728
autoclass_content = "both"
@@ -42,14 +43,12 @@
4243
coverage_ignore_classes = [
4344
# tornado.gen
4445
"Runner",
45-
4646
# tornado.web
4747
"ChunkedTransferEncoding",
4848
"GZipContentEncoding",
4949
"OutputTransform",
5050
"TemplateModule",
5151
"url",
52-
5352
# tornado.websocket
5453
"WebSocketProtocol",
5554
"WebSocketProtocol13",
@@ -60,32 +59,36 @@
6059
# various modules
6160
"doctests",
6261
"main",
63-
6462
# tornado.escape
6563
# parse_qs_bytes should probably be documented but it's complicated by
6664
# having different implementations between py2 and py3.
6765
"parse_qs_bytes",
68-
6966
# tornado.gen
7067
"Multi",
7168
]
7269

73-
html_favicon = 'favicon.ico'
70+
html_favicon = "favicon.ico"
7471

7572
latex_documents = [
76-
('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False),
73+
(
74+
"index",
75+
"tornado.tex",
76+
"Tornado Documentation",
77+
"The Tornado Authors",
78+
"manual",
79+
False,
80+
)
7781
]
7882

79-
intersphinx_mapping = {
80-
'python': ('https://docs.python.org/3.6/', None),
81-
}
83+
intersphinx_mapping = {"python": ("https://docs.python.org/3.6/", None)}
8284

83-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
85+
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
8486

8587
# On RTD we can't import sphinx_rtd_theme, but it will be applied by
8688
# default anyway. This block will use the same theme when building locally
8789
# as on RTD.
8890
if not on_rtd:
8991
import sphinx_rtd_theme
90-
html_theme = 'sphinx_rtd_theme'
92+
93+
html_theme = "sphinx_rtd_theme"
9194
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

0 commit comments

Comments
 (0)