Skip to content

pre_commit, ci: Bump the Ruff version to 0.11.6. #645

pre_commit, ci: Bump the Ruff version to 0.11.6.

pre_commit, ci: Bump the Ruff version to 0.11.6. #645

Triggered via pull request April 24, 2025 00:42
Status Failure
Total duration 13s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (PLR1704): micropython/upysh/upysh.py#L46
micropython/upysh/upysh.py:46:21: PLR1704 Redefining argument with the local name `f`
Ruff (PLR1704): micropython/drivers/led/neopixel/neopixel.py#L30
micropython/drivers/led/neopixel/neopixel.py:30:13: PLR1704 Redefining argument with the local name `i`
Ruff (PLR1730): micropython/drivers/display/lcd160cr/lcd160cr.py#L194
micropython/drivers/display/lcd160cr/lcd160cr.py:194:25: PLR1730 Replace `if` statement with `c[3] = max(c[3], 0)`
Ruff (PLR1730): micropython/drivers/display/lcd160cr/lcd160cr.py#L192
micropython/drivers/display/lcd160cr/lcd160cr.py:192:25: PLR1730 Replace `if` statement with `c[1] = max(c[1], 0)`
Ruff (PLR1730): micropython/drivers/codec/wm8960/wm8960.py#L721
micropython/drivers/codec/wm8960/wm8960.py:721:13: PLR1730 Replace `if` statement with `lb = min(lb, limit)`
Ruff (PLR1730): micropython/drivers/codec/wm8960/wm8960.py#L696
micropython/drivers/codec/wm8960/wm8960.py:696:13: PLR1730 Replace `if` statement with `value = min(value, maxval)`
Ruff (PLR1730): micropython/drivers/codec/wm8960/wm8960.py#L694
micropython/drivers/codec/wm8960/wm8960.py:694:13: PLR1730 Replace `if` statement with `value = max(value, minval)`
Ruff (PLR1730): micropython/drivers/codec/wm8960/wm8960.py#L334
micropython/drivers/codec/wm8960/wm8960.py:334:13: PLR1730 Replace `if` statement with `sysclk = max(sysclk, sample_rate * 256)`
Ruff (ASYNC230): micropython/bluetooth/aioble/examples/l2cap_file_server.py#L86
micropython/bluetooth/aioble/examples/l2cap_file_server.py:86:22: ASYNC230 Async functions should not open files with blocking methods like `open`
Ruff (ASYNC230): micropython/bluetooth/aioble/examples/l2cap_file_client.py#L91
micropython/bluetooth/aioble/examples/l2cap_file_client.py:91:14: ASYNC230 Async functions should not open files with blocking methods like `open`