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

Replace flake8 with ruff & cython-lint #168

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

charlesbluca
Copy link
Member

This brings our Python/Cython linting somewhat more in-line with that of cuDF, as well as giving us some additional Cython checks that weren't being done with flake8.

Verified

This commit was signed with the committer’s verified signature.
vandonr Raphaël Vandon
@charlesbluca charlesbluca requested a review from a team as a code owner January 17, 2024 20:06
@charlesbluca charlesbluca added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jan 17, 2024
Copy link
Member

@pentschev pentschev left a comment

Choose a reason for hiding this comment

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

This looks great @charlesbluca , thanks for it. I left one question out of curiosity only, otherwise LGTM.

Comment on lines +302 to +304
if config_dict is None:
config_dict = {}

Copy link
Member

Choose a reason for hiding this comment

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

I'm curious, is this done automatically by the linter or did you have to write manually @charlesbluca ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was done manually - does this seem like a suitable alternative to the mutable default arg?

Copy link
Member

Choose a reason for hiding this comment

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

Sure, that's in line with what we do in other places. I was primarily curious if the linter was that smart or you actually intervened manually. 🙂

@pentschev
Copy link
Member

/merge

@rapids-bot rapids-bot bot merged commit ba47654 into rapidsai:branch-0.36 Jan 17, 2024
18 checks passed
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.

None yet

2 participants