Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jul 17, 2024
1 parent f6a86f6 commit 6cd4982
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lcviz/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ def __init__(self, *args, **kwargs):
self.app.vdocs = 'v0.4.1' # TODO: testing only
self.app.docs_link = f"https://lcviz.readthedocs.io/en/{self.app.vdocs}"
for plugin in self.plugins.values():
# NOTE that plugins that need to override upstream docs_link should do so in an @observe('vdocs')
# rather than the init, since plugin instances have already been initialized
# NOTE that plugins that need to override upstream docs_link should do so in
# an @observe('vdocs') rather than the init, since plugin instances have
# already been initialized
plugin._obj.vdocs = self.app.vdocs

def load_data(self, data, data_label=None):
Expand Down
2 changes: 1 addition & 1 deletion lcviz/plugins/metadata_viewer/metadata_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def __init__(self, *args, **kwargs):

@observe('vdocs')
def _update_docs_link(self, *args):
self.docs_link = f"https://lcviz.readthedocs.io/en/{self.vdocs}/plugins.html#metadata-viewer"
self.docs_link = f"https://lcviz.readthedocs.io/en/{self.vdocs}/plugins.html#metadata-viewer" # noqa
2 changes: 1 addition & 1 deletion lcviz/plugins/subset_plugin/subset_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ def __init__(self, *args, **kwargs):

@observe('vdocs')
def _update_docs_link(self, *args):
self.docs_link = f"https://lcviz.readthedocs.io/en/{self.vdocs}/plugins.html#subset-tools"
self.docs_link = f"https://lcviz.readthedocs.io/en/{self.vdocs}/plugins.html#subset-tools" # noqa

0 comments on commit 6cd4982

Please sign in to comment.