Skip to content

Use 88 as the line length to be compatible with Black #3536

Use 88 as the line length to be compatible with Black

Use 88 as the line length to be compatible with Black #3536

Triggered via pull request February 16, 2025 05:44
Status Failure
Total duration 4m 36s
Artifacts

pre-commit.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (SIM108): benchmarks/benchmark_serving.py#L626
benchmarks/benchmark_serving.py:626:5: SIM108 Use ternary operator `distribution = 'Poisson process' if burstiness == 1.0 else 'Gamma distribution'` instead of `if`-`else`-block
Ruff (SIM108): benchmarks/benchmark_serving_guided.py#L411
benchmarks/benchmark_serving_guided.py:411:5: SIM108 Use ternary operator `distribution = 'Poisson process' if burstiness == 1.0 else 'Gamma distribution'` instead of `if`-`else`-block
Ruff (SIM108): examples/offline_inference/prithvi_geospatial_mae.py#L354
examples/offline_inference/prithvi_geospatial_mae.py:354:5: SIM108 Use ternary operator `device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")` instead of `if`-`else`-block
Ruff (SIM108): tests/kernels/test_cutlass.py#L92
tests/kernels/test_cutlass.py:92:5: SIM108 Use ternary operator `bias = torch.rand((n,), device=device, dtype=out_dtype) * 10 if use_bias else None` instead of `if`-`else`-block
Ruff (SIM108): tests/kernels/test_cutlass.py#L125
tests/kernels/test_cutlass.py:125:5: SIM108 Use ternary operator `bias = torch.rand((n,), device=device, dtype=out_dtype) * 10 if use_bias else None` instead of `if`-`else`-block
Ruff (SIM108): tests/kernels/test_machete_mm.py#L269
tests/kernels/test_machete_mm.py:269:5: SIM108 Use ternary operator `group_sizes = [None] if types.group_scale_type is None else GROUP_SIZES_TO_TEST` instead of `if`-`else`-block
Ruff (SIM108): tests/kernels/test_machete_mm.py#L298
tests/kernels/test_machete_mm.py:298:5: SIM108 Use ternary operator `group_sizes = [None] if types.group_scale_type is None else GROUP_SIZES_TO_TEST` instead of `if`-`else`-block
Ruff (SIM108): tests/kernels/utils.py#L879
tests/kernels/utils.py:879:5: SIM108 Use ternary operator `cross_kv_mmap = None if cross_test_params is None else cross_test_params.kv_mmap` instead of `if`-`else`-block
Ruff (SIM108): vllm/attention/backends/rocm_flash_attn.py#L795
vllm/attention/backends/rocm_flash_attn.py:795:17: SIM108 Use ternary operator `out = output[num_prefill_tokens:] if num_prefill_tokens > 0 else output` instead of `if`-`else`-block
Ruff (SIM108): vllm/distributed/parallel_state.py#L981
vllm/distributed/parallel_state.py:981:9: SIM108 Use ternary operator `local_rank = envs.LOCAL_RANK if distributed_init_method == "env://" else rank` instead of `if`-`else`-block