[CI]Style: Convert test/ to ruff format(Batch #8)#7438
[CI]Style: Convert test/ to ruff format(Batch #8)#7438wangxiyuan merged 2 commits intovllm-project:mainfrom
test/ to ruff format(Batch #8)#7438Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on improving code quality and consistency by applying Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request applies ruff format to a batch of files within the tests/ut/ directory. The changes are purely stylistic, including reformatting imports, function calls, and decorators to improve code consistency and readability. I have reviewed the changes and found no functional issues or bugs. The formatting changes are correctly applied and align with the goal of the pull request.
|
👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:
If CI fails, you can run linting and testing checks locally according Contributing and Testing. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
test/ to ruff format(Batch #8)test/ to ruff format(Batch #8)
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
### What this PR does / why we need it? | File Path | | :--- | | `tests/ut/ops/test_activation.py` | | `tests/ut/ops/test_comm_utils.py` | | `tests/ut/ops/test_fused_moe.py` | | `tests/ut/ops/test_linear.py` | | `tests/ut/ops/test_mla.py` | | `tests/ut/ops/test_moe_comm_method.py` | | `tests/ut/ops/test_moe_mlp.py` | | `tests/ut/ops/test_prepare_finalize.py` | | `tests/ut/ops/test_token_dispatcher.py` | | `tests/ut/ops/test_vocab_parallel_embedding.py` | | `tests/ut/patch/worker/patch_common/test_patch_distributed.py` | | `tests/ut/patch/worker/patch_common/test_patch_routed_experts_capturer.py` | | `tests/ut/quantization/test_kv_c8.py` | | `tests/ut/quantization/test_modelslim_config.py` | | `tests/ut/quantization/test_quant_utils.py` | | `tests/ut/quantization/test_w4a16.py` | | `tests/ut/quantization/test_w4a4_flatquant_dynamic.py` | | `tests/ut/quantization/test_w4a8_dynamic.py` | | `tests/ut/quantization/test_w8a16.py` | | `tests/ut/quantization/test_w8a8.py` | | `tests/ut/quantization/test_w8a8_dynamic.py` | | `tests/ut/sample/test_rejection_sampler.py` | | `tests/ut/sample/test_sampler.py` | ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.17.0 - vLLM main: vllm-project/vllm@4497431 --------- Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: tfhddd <2272751277@qq.com>
…-project#7438) ### What this PR does / why we need it? | File Path | | :--- | | `tests/ut/ops/test_activation.py` | | `tests/ut/ops/test_comm_utils.py` | | `tests/ut/ops/test_fused_moe.py` | | `tests/ut/ops/test_linear.py` | | `tests/ut/ops/test_mla.py` | | `tests/ut/ops/test_moe_comm_method.py` | | `tests/ut/ops/test_moe_mlp.py` | | `tests/ut/ops/test_prepare_finalize.py` | | `tests/ut/ops/test_token_dispatcher.py` | | `tests/ut/ops/test_vocab_parallel_embedding.py` | | `tests/ut/patch/worker/patch_common/test_patch_distributed.py` | | `tests/ut/patch/worker/patch_common/test_patch_routed_experts_capturer.py` | | `tests/ut/quantization/test_kv_c8.py` | | `tests/ut/quantization/test_modelslim_config.py` | | `tests/ut/quantization/test_quant_utils.py` | | `tests/ut/quantization/test_w4a16.py` | | `tests/ut/quantization/test_w4a4_flatquant_dynamic.py` | | `tests/ut/quantization/test_w4a8_dynamic.py` | | `tests/ut/quantization/test_w8a16.py` | | `tests/ut/quantization/test_w8a8.py` | | `tests/ut/quantization/test_w8a8_dynamic.py` | | `tests/ut/sample/test_rejection_sampler.py` | | `tests/ut/sample/test_sampler.py` | ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.17.0 - vLLM main: vllm-project/vllm@4497431 --------- Signed-off-by: MrZ20 <2609716663@qq.com>
…-project#7438) ### What this PR does / why we need it? | File Path | | :--- | | `tests/ut/ops/test_activation.py` | | `tests/ut/ops/test_comm_utils.py` | | `tests/ut/ops/test_fused_moe.py` | | `tests/ut/ops/test_linear.py` | | `tests/ut/ops/test_mla.py` | | `tests/ut/ops/test_moe_comm_method.py` | | `tests/ut/ops/test_moe_mlp.py` | | `tests/ut/ops/test_prepare_finalize.py` | | `tests/ut/ops/test_token_dispatcher.py` | | `tests/ut/ops/test_vocab_parallel_embedding.py` | | `tests/ut/patch/worker/patch_common/test_patch_distributed.py` | | `tests/ut/patch/worker/patch_common/test_patch_routed_experts_capturer.py` | | `tests/ut/quantization/test_kv_c8.py` | | `tests/ut/quantization/test_modelslim_config.py` | | `tests/ut/quantization/test_quant_utils.py` | | `tests/ut/quantization/test_w4a16.py` | | `tests/ut/quantization/test_w4a4_flatquant_dynamic.py` | | `tests/ut/quantization/test_w4a8_dynamic.py` | | `tests/ut/quantization/test_w8a16.py` | | `tests/ut/quantization/test_w8a8.py` | | `tests/ut/quantization/test_w8a8_dynamic.py` | | `tests/ut/sample/test_rejection_sampler.py` | | `tests/ut/sample/test_sampler.py` | ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.17.0 - vLLM main: vllm-project/vllm@4497431 --------- Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: guxin108 <1252896542@qq.com>
…-project#7438) ### What this PR does / why we need it? | File Path | | :--- | | `tests/ut/ops/test_activation.py` | | `tests/ut/ops/test_comm_utils.py` | | `tests/ut/ops/test_fused_moe.py` | | `tests/ut/ops/test_linear.py` | | `tests/ut/ops/test_mla.py` | | `tests/ut/ops/test_moe_comm_method.py` | | `tests/ut/ops/test_moe_mlp.py` | | `tests/ut/ops/test_prepare_finalize.py` | | `tests/ut/ops/test_token_dispatcher.py` | | `tests/ut/ops/test_vocab_parallel_embedding.py` | | `tests/ut/patch/worker/patch_common/test_patch_distributed.py` | | `tests/ut/patch/worker/patch_common/test_patch_routed_experts_capturer.py` | | `tests/ut/quantization/test_kv_c8.py` | | `tests/ut/quantization/test_modelslim_config.py` | | `tests/ut/quantization/test_quant_utils.py` | | `tests/ut/quantization/test_w4a16.py` | | `tests/ut/quantization/test_w4a4_flatquant_dynamic.py` | | `tests/ut/quantization/test_w4a8_dynamic.py` | | `tests/ut/quantization/test_w8a16.py` | | `tests/ut/quantization/test_w8a8.py` | | `tests/ut/quantization/test_w8a8_dynamic.py` | | `tests/ut/sample/test_rejection_sampler.py` | | `tests/ut/sample/test_sampler.py` | ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.17.0 - vLLM main: vllm-project/vllm@4497431 --------- Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: zouyida2052 <zouyida2002@gmail.com>
What this PR does / why we need it?
tests/ut/ops/test_activation.pytests/ut/ops/test_comm_utils.pytests/ut/ops/test_fused_moe.pytests/ut/ops/test_linear.pytests/ut/ops/test_mla.pytests/ut/ops/test_moe_comm_method.pytests/ut/ops/test_moe_mlp.pytests/ut/ops/test_prepare_finalize.pytests/ut/ops/test_token_dispatcher.pytests/ut/ops/test_vocab_parallel_embedding.pytests/ut/patch/worker/patch_common/test_patch_distributed.pytests/ut/patch/worker/patch_common/test_patch_routed_experts_capturer.pytests/ut/quantization/test_kv_c8.pytests/ut/quantization/test_modelslim_config.pytests/ut/quantization/test_quant_utils.pytests/ut/quantization/test_w4a16.pytests/ut/quantization/test_w4a4_flatquant_dynamic.pytests/ut/quantization/test_w4a8_dynamic.pytests/ut/quantization/test_w8a16.pytests/ut/quantization/test_w8a8.pytests/ut/quantization/test_w8a8_dynamic.pytests/ut/sample/test_rejection_sampler.pytests/ut/sample/test_sampler.pyDoes this PR introduce any user-facing change?
How was this patch tested?