[pre-commit.ci] pre-commit autoupdate#17841
Conversation
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)
|
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.
|
eerovaher
left a comment
There was a problem hiding this comment.
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") |
| keyword = keyword.strip().upper() | ||
| if keyword.startswith("HIERARCH "): | ||
| keyword = keyword[9:] | ||
| keyword = keyword.removeprefix("HIERARCH ") |
nstarman
left a comment
There was a problem hiding this comment.
See @eerovaher comments, otherwise looks good. All string cleanup.
|
Not sure about merging with unresolved comments in #17619 . Should we just close this without merge and wait for manual resolution? |
|
Or even the same round of auto fix, suggested next month. |
updates: