@@ -72,12 +72,12 @@ def depart(translator, node):
7272
7373
7474class 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
127127class 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
206206class 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
222222class 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
295295def 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
318318def 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