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

[Better Engineering] Fix N802 lint errors in tests #16788

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

justinchuby
Copy link
Contributor

@justinchuby justinchuby commented Jul 21, 2023

Stack from ghstack (oldest at bottom):

This change fixes the N802 lint errors by renaming the test case to use snake case.

[ghstack-poisoned]
@justinchuby justinchuby changed the base branch from gh/justinchuby/1/base to main July 21, 2023 04:48
@justinchuby justinchuby reopened this Jul 21, 2023
@justinchuby justinchuby requested review from cloudhan and snnn July 21, 2023 04:50
@justinchuby justinchuby changed the title Fix N802 lint errors in tests [Better Engineering] Fix N802 lint errors in tests Jul 21, 2023
Copy link
Contributor

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

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

It should be fine to update the function names in tests. Not sure whether other has any concern though. The only CI failure is irrelevant to this PR.

@justinchuby
Copy link
Contributor Author

The only risk I could think of was if we were selecting tests based on their names, but having done a search on the repo this doesn't seem to be the case.

@justinchuby
Copy link
Contributor Author

I will merge this PR to reduce the possibility of future conflicts. Happy to address other concerns or revert if needed.

@justinchuby justinchuby merged commit d3295f4 into main Jul 21, 2023
@justinchuby justinchuby deleted the gh/justinchuby/1/head branch July 21, 2023 16:17
justinchuby added a commit that referenced this pull request Jul 21, 2023
…and fix new lint errors"


Based on #16788

Bump ruff to 0.0.278 and fix new lint errors. I added noqa to all existing RUF012 errors which requires mutable class variables to be annotated with `ClassVar`.

Signed-off-by: Justin Chu <justinchumicrosoft.com>

[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Jul 21, 2023
… errors"


Based on #16788

Bump ruff to 0.0.278 and fix new lint errors. I added noqa to all existing RUF012 errors which requires mutable class variables to be annotated with `ClassVar`.

Signed-off-by: Justin Chu <justinchumicrosoft.com>

[ghstack-poisoned]
jchen351 pushed a commit that referenced this pull request Aug 12, 2023
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at
bottom):
* #16789
* __->__ #16788

This change fixes the N802 lint errors by renaming the test case to use
snake case.
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.

2 participants