On 9/9/25 9:07 PM, Matthieu Baerts (NGI0) wrote:
> When looking at the YNL code to add a new feature, my text editor
> automatically executed 'ruff check', and found out at least one
> interesting error: one variable was used while not being defined.
>
> I then decided to fix this error, and all the other ones reported by
> Ruff. After this series, 'ruff check' reports no more errors with
> version 0.12.12.
>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> ---
> Matthieu Baerts (NGI0) (8):
> tools: ynl: fix undefined variable name
> tools: ynl: avoid bare except
> tools: ynl: remove assigned but never used variable
> tools: ynl: remove f-string without any placeholders
> tools: ynl: remove unused imports
> tools: ynl: remove unnecessary semicolons
> tools: ynl: use 'cond is None'
> tools: ynl: check for membership with 'not in'
LGTM. When I first saw this, I expected it to collide
with my v2, but I have checked, and they don't clash.
Reviewed-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>