Skip to content

[flake8-logging-format] Fix the autofix title in logging-warn (G010)#11514

Merged
dhruvmanila merged 2 commits intoastral-sh:mainfrom
monk-time:autofix-g010-typo
May 24, 2024
Merged

[flake8-logging-format] Fix the autofix title in logging-warn (G010)#11514
dhruvmanila merged 2 commits intoastral-sh:mainfrom
monk-time:autofix-g010-typo

Conversation

@monk-time
Copy link
Copy Markdown
Contributor

Summary

Rule logging-warn (G010) prescribes a change from warn to warning and has a corresponding autofix, but the autofix is mistakenly titled "Convert to `warn`" instead of "Convert to `warning`" (the latter is what the autofix actually does). Seems to be a plain typo.

Test Plan

I apologize for not being able to properly test this at the moment, the change was made by grepping the repo and fixing the typo in code as well as in the .snap file.

@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Copy Markdown
Member

@dhruvmanila dhruvmanila left a comment

Choose a reason for hiding this comment

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

Thank you!

I apologize for not being able to properly test this at the moment, the change was made by grepping the repo and fixing the typo in code as well as in the .snap file.

Well, the CI is green so everything must have been updated ;)

@dhruvmanila dhruvmanila merged commit 3e30962 into astral-sh:main May 24, 2024
@monk-time monk-time deleted the autofix-g010-typo branch May 24, 2024 09:58
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