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

chore(refactor): update pre-commit hook verions, pyupgrade target Python version #106

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

jameslamb
Copy link
Member

This project supports python>=3.9

requires-python = ">=3.9"

But is telling pyupgrade it supports python>=3.8.

hooks:
- id: pyupgrade
args:
- --py38-plus

This fixes that, and updates all the other hook versions (pre-commit autoupdate) since it's been a while.

Notes for Reviewers

Shouldn't we upgrade the floor to requires-python = >= 3.10?

I don't think so. That's being done across RAPIDS libraries in rapidsai/build-planning#88 right now, but rapids-dependency-file-generator is used in many places outside of RAPIDS (see everything linked to #89, for example).

For tools like this, I think we should generally support a wider range of Python versions than RAPIDS itself does.

@jameslamb jameslamb added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Aug 28, 2024
@jameslamb jameslamb changed the title update pre-commit hook versions chore(refactor): update pre-commit hook verions, pyupgrade target Python version Aug 28, 2024
@jameslamb
Copy link
Member Author

CI here will be fixed by #107

@bdice bdice merged commit 8455d42 into rapidsai:main Sep 16, 2024
4 checks passed
@jameslamb jameslamb deleted the pyupgrade-config branch September 16, 2024 20:46
@GPUtester
Copy link

🎉 This PR is included in version 1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants