Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Fix __init__.py.jinja formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GenevieveBuckley committed Jun 13, 2024
1 parent 1be8418 commit 311a013
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions template/src/{{module_name}}/__init__.py.jinja
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if use_git_tags_for_versioning == 'y' %}
{% if use_git_tags_for_versioning %}
try:
from ._version import version as __version__
except ImportError:
Expand All @@ -7,24 +7,24 @@ except ImportError:
__version__ = "0.0.1"
{% endif -%}

{% if include_reader_plugin == 'y' %}
{% if include_reader_plugin %}
from ._reader import napari_get_reader
{% endif %}{% if include_sample_data_plugin == 'y' -%}
{% endif %}{% if include_sample_data_plugin -%}
from ._sample_data import make_sample_data
{% endif %}{% if include_widget_plugin == 'y' -%}
{% endif %}{% if include_widget_plugin -%}
from ._widget import ExampleQWidget, ImageThreshold, threshold_autogenerate_widget, threshold_magic_widget
{% endif %}{% if include_writer_plugin == 'y' -%}
{% endif %}{% if include_writer_plugin -%}
from ._writer import write_multiple, write_single_image
{% endif %}
__all__ = (
{% if include_reader_plugin == 'y' -%}
{% if include_reader_plugin -%}
"napari_get_reader",
{% endif %}{% if include_writer_plugin == 'y' -%}
{% endif %}{% if include_writer_plugin -%}
"write_single_image",
"write_multiple",
{% endif %}{% if include_sample_data_plugin == 'y' -%}
{% endif %}{% if include_sample_data_plugin -%}
"make_sample_data",
{% endif %}{% if include_widget_plugin == 'y' -%}
{% endif %}{% if include_widget_plugin -%}
"ExampleQWidget",
"ImageThreshold",
"threshold_autogenerate_widget",
Expand Down

0 comments on commit 311a013

Please sign in to comment.