-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[CI/Build] bump ruff version, fix linting issues #6546
Conversation
dtrifiro
commented
Jul 18, 2024
•
edited
Loading
edited
- bump ruff to 0.5.5
- fix new linting issues
- update ruff workflow for new syntax
611c243
to
583d63c
Compare
56f6c7e
to
ada1701
Compare
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 @dtrifiro, the changes look good to me
if not (is_symmetric_activation # noqa: SIM103 | ||
and is_per_tensor_activation): |
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.
curious of the reason for this change
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.
https://docs.astral.sh/ruff/rules/needless-bool/
Basically ruff
here tells you that you can just do
return not(is_symmetric_activation and is_per_tensor_activation)
but since we have a comment below, I think it's clearer if we just suppress this error and keep it as is
vllm/model_executor/layers/quantization/compressed_tensors/utils.py
Outdated
Show resolved
Hide resolved
vllm/model_executor/layers/quantization/compressed_tensors/utils.py
Outdated
Show resolved
Hide resolved
vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors.py
Show resolved
Hide resolved
CI failures look unrelated?
|
fb7b534
to
6be352d
Compare
/ready |
4443e7c
to
6064087
Compare
4018a95
to
4e14c2a
Compare
Closed in favor of #8469 |