Skip to content

Commit 0812b66

Browse files
committed
Format with Black
1 parent e7544a6 commit 0812b66

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sphinx_tabs/tabs.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ def depart(translator, node):
7272

7373

7474
class TabsDirective(SphinxDirective):
75-
""" Top-level tabs directive """
75+
"""Top-level tabs directive"""
7676

7777
has_content = True
7878

7979
def run(self):
80-
""" Parse a tabs directive """
80+
"""Parse a tabs directive"""
8181
self.assert_has_content()
8282

8383
node = nodes.container(type="tab-element")
@@ -125,7 +125,7 @@ def run(self):
125125

126126

127127
class TabDirective(SphinxDirective):
128-
""" Tab directive, for adding a tab to a collection of tabs """
128+
"""Tab directive, for adding a tab to a collection of tabs"""
129129

130130
has_content = True
131131

@@ -135,7 +135,7 @@ def __init__(self, *args, **kwargs):
135135
super().__init__(*args, **kwargs)
136136

137137
def run(self):
138-
""" Parse a tab directive """
138+
"""Parse a tab directive"""
139139
self.assert_has_content()
140140

141141
tabs_id = self.env.temp_data["tabs_stack"][-1]
@@ -204,7 +204,7 @@ def run(self):
204204

205205

206206
class GroupTabDirective(TabDirective):
207-
""" Tab directive that toggles with same tab names across page"""
207+
"""Tab directive that toggles with same tab names across page"""
208208

209209
has_content = True
210210

@@ -220,7 +220,7 @@ def run(self):
220220

221221

222222
class CodeTabDirective(GroupTabDirective):
223-
""" Tab directive with a codeblock as its content"""
223+
"""Tab directive with a codeblock as its content"""
224224

225225
has_content = True
226226
required_arguments = 1 # Lexer name
@@ -238,7 +238,7 @@ class CodeTabDirective(GroupTabDirective):
238238
}
239239

240240
def run(self):
241-
""" Parse a code-tab directive"""
241+
"""Parse a code-tab directive"""
242242
self.assert_has_content()
243243

244244
if len(self.arguments) > 1:
@@ -287,13 +287,13 @@ def unknown_visit(self, node):
287287

288288
@property
289289
def found_tabs_directive(self):
290-
""" Return whether a sphinx tabs directive was found """
290+
"""Return whether a sphinx tabs directive was found"""
291291
return self._found
292292

293293

294294
# pylint: disable=unused-argument
295295
def update_context(app, pagename, templatename, context, doctree):
296-
""" Remove sphinx-tabs CSS and JS asset files if not used in a page """
296+
"""Remove sphinx-tabs CSS and JS asset files if not used in a page"""
297297
if doctree is None:
298298
return
299299
visitor = _FindTabsDirectiveVisitor(doctree)
@@ -316,7 +316,7 @@ def update_context(app, pagename, templatename, context, doctree):
316316

317317

318318
def setup(app):
319-
""" Set up the plugin """
319+
"""Set up the plugin"""
320320
app.add_config_value("sphinx_tabs_valid_builders", [], "")
321321
app.add_config_value("sphinx_tabs_disable_tab_closing", False, "html", [bool])
322322
app.add_node(SphinxTabsContainer, html=(visit, depart))

0 commit comments

Comments
 (0)