[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aJmZUJeKJ6hd_pmx@stanley.mountain>
Date: Mon, 11 Aug 2025 10:18:40 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Haoyang LIU <tttturtleruss@...il.com>
Cc: Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
hust-os-kernel-patches@...glegroups.com,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH] scripts/checktransupdate.py: add support for scanning
directory
On Mon, Aug 11, 2025 at 12:17:30AM +0800, Haoyang LIU wrote:
>
> import os
> @@ -131,7 +144,7 @@ def check_per_file(file_path):
> opath = get_origin_path(file_path)
>
> if not os.path.isfile(opath):
> - logging.error("Cannot find the origin path for {file_path}")
> + logging.error(f"Cannot find the origin path for {file_path}")
Send this as a separate patch with a Fixes tag.
Fixes: 63e96ce050e5 ("scripts: fix all issues reported by pylint")
Ideally, pylint should be modified to complain about this or something...
I have a script for kernel patches which checks these kinds of mechanical
changes and someone could make a similar script which checks pylint
changes. https://github.com/error27/rename_rev
regards,
dan carpenter
Powered by blists - more mailing lists