Skip to content

Commit

Permalink
Tweaked settings and code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKempen committed Feb 10, 2024
1 parent d496797 commit 2035b8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@
"rc_lib/**",
"website/**"
],
"python.formatting.provider": "black",
"python.analysis.typeCheckingMode": "basic",
"python.analysis.autoImportCompletions": true,
"python.defaultInterpreterPath": "/usr/local/bin/python"
"python.defaultInterpreterPath": "/usr/local/bin/python",
"[python]": {
"diffEditor.ignoreTrimWhitespace": false,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"editor.formatOnSaveMode": "file"
}
8 changes: 3 additions & 5 deletions extensions/video.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""
Local nodes which may be used to create videos.
Useful links:
Useful links:
rst directive writing documentation:
https://docutils.sourceforge.io/docs/howto/rst-directives.html
Expand Down Expand Up @@ -144,7 +143,6 @@ def depart_video(self, _: video) -> None:
self.body.append("</video>\n")


# No args might not be valid here, I haven't checked
def visit_node_unsupported(
translator: docutils.SphinxTranslator, node: nodes.Node
) -> None:
Expand All @@ -165,5 +163,5 @@ def register_video_nodes(app: application.Sphinx) -> None:
app.add_builder(VideoBuilder, override=True)
app.set_translator("html", VideoTranslator)

app.add_node(video, **unsupported_dict)
app.add_node(source, **unsupported_dict)
app.add_node(video, **unsupported_dict) # type: ignore
app.add_node(source, **unsupported_dict) # type: ignore

0 comments on commit 2035b8f

Please sign in to comment.