Skip to content

Commit eee1d68

Browse files
Fix linter errors
1 parent 49791bf commit eee1d68

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ def run(self):
464464
elif isinstance(self, VoiciDirective):
465465
button_text = self.env.config.voici_button_text
466466
elif "button_text" in self.options:
467-
raise ValueError("'button_text' is only valid if 'new_tab' is True. To modify the prompt text, use 'prompt' and 'prompt_color'.")
467+
raise ValueError(
468+
"'button_text' is only valid if 'new_tab' is True. To modify the prompt text, use 'prompt' and 'prompt_color'."
469+
)
468470

469471
if new_tab:
470472
return [
@@ -927,8 +929,12 @@ def setup(app):
927929

928930
# Allow customising the button text for each directive (only when "new_tab" is True,
929931
# error otherwise)
930-
app.add_config_value("jupyterlite_button_text", "Open as a notebook", rebuild="html")
931-
app.add_config_value("notebooklite_button_text", "Open as a notebook", rebuild="html")
932+
app.add_config_value(
933+
"jupyterlite_button_text", "Open as a notebook", rebuild="html"
934+
)
935+
app.add_config_value(
936+
"notebooklite_button_text", "Open as a notebook", rebuild="html"
937+
)
932938
app.add_config_value("voici_button_text", "Open with Voici", rebuild="html")
933939

934940
# Initialize NotebookLite and JupyterLite directives

0 commit comments

Comments
 (0)