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

[pre-commit.ci] pre-commit autoupdate #16396

Closed
wants to merge 2 commits into from

Conversation

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.4.3](astral-sh/ruff-pre-commit@v0.3.4...v0.4.3)
- [github.com/scientific-python/cookie: 2024.01.24 → 2024.04.23](scientific-python/cookie@2024.01.24...2024.04.23)
Copy link

github-actions bot commented May 6, 2024

Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.

  • Do the proposed changes actually accomplish desired goals?
  • Do the proposed changes follow the Astropy coding guidelines?
  • Are tests added/updated as required? If so, do they follow the Astropy testing guidelines?
  • Are docs added/updated as required? If so, do they follow the Astropy documentation guidelines?
  • Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions. Also see instructions for rebase and squash.
  • Did the CI pass? If no, are the failures related? If you need to run daily and weekly cron jobs as part of the PR, please apply the "Extra CI" label. Codestyle issues can be fixed by the bot.
  • Is a change log needed? If yes, did the change log check pass? If no, add the "no-changelog-entry-needed" label. If this is a manual backport, use the "skip-changelog-checks" label unless special changelog handling is necessary.
  • Is this a big PR that makes a "What's new?" entry worthwhile and if so, is (1) a "what's new" entry included in this PR and (2) the "whatsnew-needed" label applied?
  • At the time of adding the milestone, if the milestone set requires a backport to release branch(es), apply the appropriate "backport-X.Y.x" label(s) before merge.

@nstarman
Copy link
Member

nstarman commented May 6, 2024

Let's update the pre-commit config so that these PRs include the recommended steps to fix a failing PR. Currently our practice is to close this PR, cherry-pick the commits into a new PR where we fix whatever's wrong. This is because the Pre-commit PRs are branches on Astropy main, not from a fork. Let's record this institutional knowledge into the PR message itself.

@pllim pllim added this to the v7.0.0 milestone May 6, 2024
@@ -138,7 +138,7 @@
# Safe in < 2.0, because it deferred to the method. Overridden in >= 2.0.
MASKED_SAFE_FUNCTIONS |= {np.ptp}
# Removed in numpy 2.0. Just an alias to vstack.
MASKED_SAFE_FUNCTIONS |= {np.row_stack}
MASKED_SAFE_FUNCTIONS |= {np.vstack}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this change should happen, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is ruff trying to fix our code for v2, but we don't want that in this specific case.

@pllim
Copy link
Member

pllim commented May 6, 2024

Yeah... let's close and PR from fork.

ruff.....................................................................Failed
- hook id: ruff
- exit code: 1

astropy/io/fits/header.py:1072:21: UP031 Use format specifiers instead of percent format
Found 1 error.

@pllim pllim closed this May 6, 2024
@pllim pllim deleted the pre-commit-ci-update-config branch May 6, 2024 17:28
@nstarman nstarman mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-automation skip-changelog-checks Tells bot to skip changlog checks testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants