Skip to content
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

Merged
merged 19 commits into from
Mar 11, 2024

Conversation

CyclingNinja
Copy link
Member

@CyclingNinja CyclingNinja commented Feb 28, 2024

No description provided.

CyclingNinja added a commit to CyclingNinja/package-template that referenced this pull request Feb 28, 2024
* Update {{ cookiecutter.package_name }}/.github/workflows/sub_package_update.yml

Co-authored-by: Stuart Mumford <stuart@cadair.com>

* Upstreaming lessons from SunPy application

* Apply suggestions from code review

---------

Co-authored-by: Stuart Mumford <stuart@cadair.com>
Comment on lines 3 to 5
{%- 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,
Copy link
Contributor

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 ?

Copy link
Member Author

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 😞

@CyclingNinja CyclingNinja force-pushed the pre_commit_additions branch 3 times, most recently from 13754e5 to d84b458 Compare February 28, 2024 14:11
@Cadair Cadair changed the title Adds .pre-commit-config Adds isort and codespell to pre-commit Mar 1, 2024
CyclingNinja and others added 3 commits March 1, 2024 11:04
…/__init__.py

Co-authored-by: Stuart Mumford <stuart@cadair.com>
…/__init__.py

Co-authored-by: Stuart Mumford <stuart@cadair.com>
@@ -14,3 +14,5 @@ repos:
exclude: "{{ cookiecutter.package_name }}"
- id: debug-statements
exclude: "{{ cookiecutter.package_name }}"
ci:
autofix_prs: false
Copy link
Contributor

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?

Copy link
Member

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?

@Cadair Cadair enabled auto-merge March 11, 2024 13:33
@Cadair Cadair disabled auto-merge March 11, 2024 14:32
@Cadair Cadair merged commit 6c4e4f2 into sunpy:main Mar 11, 2024
7 of 8 checks passed
@Cadair
Copy link
Member

Cadair commented Mar 11, 2024

Merged with 3.9 failing as we realised that 3.9 is past it's SPEC 0 expiration date and will be removed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants