-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds isort and codespell to pre-commit #54
Conversation
* Update {{ cookiecutter.package_name }}/.github/workflows/sub_package_update.yml Co-authored-by: Stuart Mumford <[email protected]> * Upstreaming lessons from SunPy application * Apply suggestions from code review --------- Co-authored-by: Stuart Mumford <[email protected]>
for more information, see https://pre-commit.ci
{%- 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to need to make sure isort doesnt move this with # isort:skip ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this is what i'm trying to sort atm 😞
13754e5
to
d84b458
Compare
…e-template into pre_commit_additions
d84b458
to
2c36596
Compare
{{ cookiecutter.package_name }}/{{ cookiecutter.module_name }}/__init__.py
Outdated
Show resolved
Hide resolved
{{ cookiecutter.package_name }}/{{ cookiecutter.module_name }}/example_mod.py
Outdated
Show resolved
Hide resolved
{{ cookiecutter.package_name }}/{{ cookiecutter.module_name }}/__init__.py
Outdated
Show resolved
Hide resolved
{{ cookiecutter.package_name }}/{{ cookiecutter.module_name }}/__init__.py
Outdated
Show resolved
Hide resolved
…/__init__.py Co-authored-by: Stuart Mumford <[email protected]>
…/__init__.py Co-authored-by: Stuart Mumford <[email protected]>
@@ -14,3 +14,5 @@ repos: | |||
exclude: "{{ cookiecutter.package_name }}" | |||
- id: debug-statements | |||
exclude: "{{ cookiecutter.package_name }}" | |||
ci: | |||
autofix_prs: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to add the auto update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's on by default, so this should be fine?
25bdad3
to
2c16485
Compare
…e-template into pre_commit_additions
2c16485
to
ba56bd0
Compare
e8905af
to
6ae3c5c
Compare
Merged with 3.9 failing as we realised that 3.9 is past it's SPEC 0 expiration date and will be removed soon. |
No description provided.