-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstreaming precommit lessons from sunpy-template
- Loading branch information
1 parent
17c1575
commit 2d28565
Showing
4 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
{{ cookiecutter.package_name }}/{{ cookiecutter.module_name }}/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{%- if cookiecutter.include_example_code == 'y' -%} | ||
from .example_mod import do_primes | ||
{%- endif %} | ||
from .version import version as __version__ | ||
|
||
{%- if cookiecutter.include_example_code == 'y' %} | ||
from .example_mod import do_primes | ||
{% if cookiecutter.include_example_code == 'y' -%} | ||
# Then you can be explicit to control what ends up in the namespace, | ||
__all__ = ['do_primes'] | ||
{% else %} | ||
{% else -%} | ||
__all__ = [] | ||
{%- endif -%} | ||
{% endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters