Skip to content

Code cleanup

Code cleanup #167

Triggered via pull request February 20, 2026 15:15
@BotBlakeBotBlake
synchronize #109
code-cleanup
Status Failure
Total duration 12s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
ruff (FURB110): src/jellybench_py/hwi.py#L278
src/jellybench_py/hwi.py:278:27: FURB110 Replace ternary `if` expression with `or` operator
ruff (FURB110): src/jellybench_py/hwi.py#L266
src/jellybench_py/hwi.py:266:60: FURB110 Replace ternary `if` expression with `or` operator
ruff (PGH003): src/jellybench_py/hwi.py#L248
src/jellybench_py/hwi.py:248:25: PGH003 Use specific rule codes when ignoring type issues
ruff (PLC0415): src/jellybench_py/hwi.py#L248
src/jellybench_py/hwi.py:248:13: PLC0415 `import` should be at the top-level of a file
ruff (C408): src/jellybench_py/hwi.py#L192
src/jellybench_py/hwi.py:192:16: C408 Unnecessary `dict()` call (rewrite as a literal)
ruff (ANN204): src/jellybench_py/hwi.py#L182
src/jellybench_py/hwi.py:182:9: ANN204 Missing return type annotation for special method `__init__`
ruff (N806): src/jellybench_py/hwi.py#L151
src/jellybench_py/hwi.py:151:9: N806 Variable `_ORDERED_UNITS` in function should be lowercase
ruff (UP042): src/jellybench_py/hwi.py#L109
src/jellybench_py/hwi.py:109:11: UP042 Class SizeUnit inherits from both `str` and `enum.Enum`
ruff (UP042): src/jellybench_py/hwi.py#L80
src/jellybench_py/hwi.py:80:11: UP042 Class Vendor inherits from both `str` and `enum.Enum`
ruff (UP042): src/jellybench_py/hwi.py#L51
src/jellybench_py/hwi.py:51:11: UP042 Class Vendor inherits from both `str` and `enum.Enum`