Re: [PATCH] scripts/show_delta: reformat code

From: Miguel Ojeda
Date: Thu Nov 30 2023 - 12:13:56 EST


On Thu, Nov 30, 2023 at 3:49 PM Hu Haowen <2023002089@xxxxxxxxxxxxxxxx> wrote:
>
> - if string.find(rest, base_str)==1:
> + if string.find(rest, base_str) == 1:

If this is changed, shouldn't be others like:

> if arg=="-b":
> elif arg=="-h":

be changed too?

In other words, it seems this was done manually. Should we instead
introduce/use something like Black or Ruff if we are going to do this
sort of changes?

Thanks!

Cheers,
Miguel