Skip to content

style: Enforce ruff rules #125

style: Enforce ruff rules

style: Enforce ruff rules #125

Triggered via pull request June 22, 2025 18:38
Status Failure
Total duration 1m 17s
Artifacts

tests.yaml

on: pull_request
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Linters
Process completed with exit code 1.
Ruff (SIM103): yamllint/rules/quoted_strings.py#L233
yamllint/rules/quoted_strings.py:233:9: SIM103 Return the negated condition directly
Ruff (SIM105): tests/test_decoder.py#L224
tests/test_decoder.py:224:5: SIM105 Use `contextlib.suppress(KeyError)` instead of `try`-`except`-`pass`
Ruff (SIM118): tests/test_cli.py#L894
tests/test_cli.py:894:17: SIM118 Use `key in dict` instead of `key in dict.keys()`
Ruff (RUF010): tests/test_cli.py#L858
tests/test_cli.py:858:48: RUF010 Use explicit conversion flag
Ruff (PLC0206): tests/common.py#L195
tests/common.py:195:9: PLC0206 Extracting value from dictionary without calling `.items()`
Ruff (SIM110): tests/common.py#L114
tests/common.py:114:5: SIM110 Use `return any(codec.endswith(suffix) for suffix in ('_32', '_16', '_sig'))` instead of `for` loop
Ruff (SIM118): tests/common.py#L103
tests/common.py:103:12: SIM118 Use `key in dict` instead of `key in dict.keys()`
Ruff (SIM105): tests/__init__.py#L35
tests/__init__.py:35:5: SIM105 Use `contextlib.suppress(KeyError)` instead of `try`-`except`-`pass`
Unit tests (3.13t)
Process completed with exit code 1.