-
Notifications
You must be signed in to change notification settings - Fork 24
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 (#63)
* Upstreaming precommit lessons from sunpy-template * Adds py12 tox test suite * Adds py12 enviroment to parent tox * Update virtualenv handling in test to pytest-venv
- Loading branch information
1 parent
cc1e504
commit ff5c864
Showing
8 changed files
with
25 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ jobs: | |
- macos: py39-test | ||
- linux: py310-test | ||
- linux: py311-test | ||
- linux: py312-test | ||
- linux: build_docs |
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
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
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