Skip to content

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

Closed
pre-commit-ci[bot] wants to merge 2 commits intomainfrom
pre-commit-ci-update-config
Closed

[pre-commit.ci] pre-commit autoupdate#17841
pre-commit-ci[bot] wants to merge 2 commits intomainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Mar 3, 2025

updates:
- [github.com/woodruffw/zizmor-pre-commit: v1.3.0 → v1.4.1](zizmorcore/zizmor-pre-commit@v1.3.0...v1.4.1)
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.9](astral-sh/ruff-pre-commit@v0.8.6...v0.9.9)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2025

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.

@pre-commit-ci pre-commit-ci bot requested review from a team, dhomeier, mcara, saimn and taldcroft as code owners March 3, 2025 16:29
@pllim pllim added this to the v7.1.0 milestone Mar 3, 2025
@pllim pllim requested review from eerovaher and neutrinoceros March 3, 2025 16:32
Copy link
Member

@eerovaher eerovaher left a comment

Choose a reason for hiding this comment

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

Ruff formatter is making quite a lot of changes to assert statements with custom error messages. I suspect that in many cases the custom messages are not any better than the messages pytest could generate automatically. But looking into that properly would go beyond the scope of this pull request.

tform = compressed_coldefs[column_name].format
if tform.startswith("1"):
tform = tform[1:]
tform = tform.removeprefix("1")
Copy link
Member

Choose a reason for hiding this comment

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

keyword = keyword.strip().upper()
if keyword.startswith("HIERARCH "):
keyword = keyword[9:]
keyword = keyword.removeprefix("HIERARCH ")
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@nstarman nstarman left a comment

Choose a reason for hiding this comment

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

See @eerovaher comments, otherwise looks good. All string cleanup.

@pllim
Copy link
Member

pllim commented Mar 3, 2025

Not sure about merging with unresolved comments in #17619 . Should we just close this without merge and wait for manual resolution?

@pllim pllim closed this Mar 3, 2025
@pllim pllim deleted the pre-commit-ci-update-config branch March 3, 2025 22:49
@nstarman
Copy link
Member

nstarman commented Mar 3, 2025

Or even the same round of auto fix, suggested next month.

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.

3 participants