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

update pre-commit hook versions, use new ruff config format #59

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

jameslamb
Copy link
Member

At least a year ago (I'm not sure when precisely), ruff broke up the [ruff] table in pyproject.toml in favor of storing configuration in several more focused tables, like [tool.ruff.lint]. Context: https://github.com/rapidsai/rapids-reviser/pull/51/files#r1755430166

This proposes the following:

  • using that new format here, to avoid build issues when that deprecation eventually is enforced and becomes an error
  • updating all the pre-commit hooks w/ pre-commit autoupdate

@jameslamb jameslamb added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Sep 11, 2024
@jameslamb jameslamb requested review from vyasr and a team as code owners September 11, 2024 19:27
Copy link
Member

@rjzamora rjzamora left a comment

Choose a reason for hiding this comment

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

Don't personally know whether the specific rev changes are correct, but generally LGTM. Thanks!

Comment on lines +35 to +46
# pycodestyle (errors)
"E",
# isort
"I",
# pyflakes
"F",
# pep8-naming
"N",
# pyupgrade
"UP",
# pycodestyle (warnings)
"W",
Copy link
Member

Choose a reason for hiding this comment

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

Love the comments here. Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

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

no prob! Figured I'd propose this while I'm touching this anyway. I've found comments like this really helpful for organizing this configuration, especially when it gets big like this: https://github.com/rapidsai/cudf/blob/0b32f55b1ed38507437770d21da1e4e1a1c4a17d/pyproject.toml#L30

@jameslamb
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 864ed0d into rapidsai:branch-24.10 Sep 11, 2024
7 checks passed
@jameslamb jameslamb deleted the precommit-versions branch September 11, 2024 19:53
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants