-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Move linting to ruff #6966
Move linting to ruff #6966
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,9 @@ | |
import tempfile | ||
|
||
from . import Image, ImageFile | ||
from ._binary import i8 | ||
from ._binary import i8, o8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happened here? Does Ruff not support isort's Black profile? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. isort is a bit looser than Ruff with these; Ruff wants either everything or nothing to be grouped like this, and isort doesn't always care. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Testing, isort always sorts this like the original, with or without the Black profile. Anyway, I don't mind too much, as long as it remains relatively stable. On that topic, maybe we should wait until Ruff is at "v1" or "stable", which looks to be close: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ruff has Black profile as the ONLY profile possible. |
||
from ._binary import i16be as i16 | ||
from ._binary import i32be as i32 | ||
from ._binary import o8 | ||
|
||
COMPRESSION = {1: "raw", 5: "jpeg"} | ||
|
||
|
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.
Why does Flake8 warn about F401 when Ruff doesn't?
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.
I suppose Flake8 warning about both F401 and F403 for a star import is overkill anyway.