GeezerVison is showing github.com — Switch linting to ruff, use f-strings, fix lint errors and possible bugs by akx · Pull Request #3126 · docker/docker-py
Conversation
akx
commented
May 11, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR is a bit on the big side, but it should be pretty straightforward to review commit by commit. A net line reduction
too!
It:
- replaces
.format and % string formatting with the more succinct and performant f-strings wherever possible (this was half powered by flynt, half manual work)
- replaces the
flake8 linter with the much faster, more capable ruff linter
- ... and then starts to fix up various issues and possible bugs found by
ruff. See each commit's message for details.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I appreciate how methodical you were here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
akx reacted with heart emoji
milas
added a commit
to milas/docker-py
that referenced
this pull request
Aug 15, 2023
milas
commented
Aug 15, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
FYI the integration test failure was because the test was broken [before this PR] - it was missing assert so the statements were no-ops, the linter caught that but the asserts were incorrect. I fixed the status code in the merge after comparing to real engine behavior.
(Also apologies for noise to anyone watching this repo, it appears my Git pushes might have caused a bunch of notification emails 😬)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
aiordache
Awaiting requested review from aiordache
1 more reviewer
milas
milas approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.