Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp801780rdb; Thu, 30 Nov 2023 21:04:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGngMN1TJ75IxYbK1LvSDH1U2zc6HUCVY1CE9wmZ12CmRE32+/7O0N1jU0xXRdPEBIZ35F/ X-Received: by 2002:a05:6a21:328b:b0:18b:558e:9e2a with SMTP id yt11-20020a056a21328b00b0018b558e9e2amr40249477pzb.12.1701407097885; Thu, 30 Nov 2023 21:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701407097; cv=none; d=google.com; s=arc-20160816; b=FfL0Ju679Pb87P9cKvGu3dxzlRS/Ut8ay1jwv6jI/f9WkERSeQBUp1Bifd8ebn8ZdB +j3WcleTBXkBO7NoVk/QR0IIEDOeMrZB4akH2DdSuRS7J1yA+uP/Uy+l4zpfM95vDyOR 6TBy/yt4DAmJXjoJlal8hJCEUtLaz+BaqAh8dFLg00RIIQVWh/QhLK6K+GycJuTIeMpV MAQz7Ad2hwktFexAmcMD3yaarhFCM4mZjHj3I4+EqM0pJTrsiju1/tIDP+5UXqmDWwn2 xLk2Df18PaYL6yWBP0ZgXF3mC369nPDmMQvmWvIGFV7PLZzVaMR9b/p05qgPGuheR6yk xT7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=G09pAk8nOLm0aiOuNMTnguDZCKXG/8qUaK0fC/jcjeE=; fh=CuRl6zJwo0REofrMueDegZumh1XX1fbXzH0V/VH1Ef0=; b=f/Ld3SdxJWpysXeWzTeeCgqb+eoHXQDjHabkSCFKbWYr1UrIp574ujYQbEGnh/3ni3 Tsq6H61UHsf4mVB8UBXpL/pSAG3UuJ+/A0Sq9XxmLA94kBVSmjZnsfRNheufrbzqP+5C LfOBa9atgXjiVNTDWAQUUJrFZnUIbpXUS4IomLAuYayM1OI4PPgciVWu0npn+jDFF5S0 bkg5CTu8WcIF5LKyWkBeYB0p6pU/VA4jImfH7THHKMTRum+FExV1LSSgvLA5wV1iIarV 58hnMp7qmPfU14UgX9PrVtM0I0ytovo8+pSkqA/v9HFQ2jVaRzTkXdR2tAPzAVNqN2P9 ZHog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=link.tyut.edu.cn Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id be4-20020a656e44000000b005c6045987a1si2818162pgb.7.2023.11.30.21.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:04:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=link.tyut.edu.cn Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4144A8236278; Thu, 30 Nov 2023 21:04:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377343AbjLAFEY (ORCPT + 99 others); Fri, 1 Dec 2023 00:04:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbjLAFEW (ORCPT ); Fri, 1 Dec 2023 00:04:22 -0500 X-Greylist: delayed 406 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 30 Nov 2023 21:04:26 PST Received: from mail-m92230.xmail.ntesmail.com (mail-m92230.xmail.ntesmail.com [103.126.92.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AB30D4A for ; Thu, 30 Nov 2023 21:04:26 -0800 (PST) Received: from [172.23.111.174] (unknown [111.52.6.202]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 146848000EB; Fri, 1 Dec 2023 12:56:15 +0800 (CST) Message-ID: <9075f00e-f914-4739-aae2-ba4ccfd6236b@link.tyut.edu.cn> Date: Fri, 1 Dec 2023 12:56:14 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scripts/show_delta: reformat code To: Miguel Ojeda Cc: gregkh@linuxfoundation.org, akpm@linux-foundation.org, masahiroy@kernel.org, ndesaulniers@google.com, n.schier@avm.de, ojeda@kernel.org, linux-kernel@vger.kernel.org References: <20231130143822.17173-1-2023002089@link.tyut.edu.cn> Content-Language: en-US From: Hu Haowen <2023002089@link.tyut.edu.cn> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaQx4YVk4fQhpCQ09JGRlPSFUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSlVOSVVNVUlLSVlXWRYaDxIVHRRZQVlPS0hVSkpLSEpDVUpLS1VLWQY+ X-HM-Tid: 0a8c23bc0b2cb03akuuu146848000eb X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PEk6GDo6DzwrChY1HU0vPywM KAMwClZVSlVKTEtKT0tNTkxOQkxDVTMWGhIXVUlLSUhLS0lLQ0I7FxIVEFUPAg4PVR4fDlUYFUVZ V1kSC1lBWUpKSlVOSVVNVUlLSVlXWQgBWUFJTktONwY+ X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 21:04:53 -0800 (PST) On 2023/12/1 01:13, Miguel Ojeda wrote: > On Thu, Nov 30, 2023 at 3:49 PM Hu Haowen <2023002089@link.tyut.edu.cn> 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? Sorry, ignored by accident. I'll make up within the next patch version. > 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? I'm sorry but I'm not familiar with these two things. Are Black and Ruff some kind of tools which help identify these code format issues? If so it is better to introduce them to assist to accomplish the similar series of work instead of only completing it manually with avoiding omitted parts simultaneously. Thanks, Hu Haowen > Thanks! > > Cheers, > Miguel >