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 autoupdate 2024-12-11 #70

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Dec 11, 2024

PR Goal?

% pre-commit autoupdate && pre-commit run --all-files

[https://github.com/pre-commit/pre-commit-hooks] updating v3.2.0 -> v5.0.0
[https://github.com/psf/black] updating 24.3.0 -> 24.10.0 -- REVERTED
[https://github.com/pre-commit/mirrors-mypy] updating v0.991 -> v1.13.0 -- REVERTED
[https://github.com/PyCQA/isort] updating 5.11.4 -> 5.13.2
[https://github.com/pre-commit/mirrors-clang-format] updating v15.0.7 -> v19.1.5

The file changes seem to all be about the clang-formatupgrade.

Fixes?

Feedback sought?

Priority?

Tests added?

How to test?

Confidence?

Version change?

@joanise
Copy link
Member

joanise commented Dec 11, 2024

I agree with the python-related changes to pre-commit, I'll let @dhdaines review the clang bits since I don't touch that code.

@joanise joanise requested a review from dhdaines December 11, 2024 16:16
@cclauss cclauss force-pushed the pre-commit_autoupdate_2024_12_11 branch from 55688fb to fdfa5f2 Compare December 11, 2024 19:28
@cclauss
Copy link
Contributor Author

cclauss commented Dec 12, 2024

@joanise you might try on a local branch:
pre-commit autoupdate && pre-commit run --all-files
and see if you can fix the black and mypy issues?

@joanise
Copy link
Member

joanise commented Dec 12, 2024

Black: since we still want to support Python 3.8, we could bump to 24.8 but not 24.10.
mypy: possibly, when I have some more time to put on this.

Question: is this causing any issue in a project you're working on? I'd like to know where I should put this in my priority list.

@cclauss
Copy link
Contributor Author

cclauss commented Dec 12, 2024

black -- Perhaps upgrade to ruff format instead. https://docs.astral.sh/ruff/formatter

Running pre-commit autoupdate is just an occasional good thing to do but it is NOT on the critical path.

@dhdaines
Copy link
Contributor

Ruff is nice and fast though it isn't always 100% compatible with black.

The C-related changes seem good to me, I think clang-format changed a bit the treatment of preprocessor macros but the result is much more readable.

@joanise joanise merged commit 151377a into ReadAlongs:main Dec 12, 2024
5 checks passed
@cclauss cclauss deleted the pre-commit_autoupdate_2024_12_11 branch December 12, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants