Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F5612063FD for ; Fri, 1 Aug 2025 16:29:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754065763; cv=none; b=EQ3dt2/kCMwBSZoTBsPT59bgmVeOwSkliKwk6eYjnbeopWkn4mtMPaL+3EDFk1W1ZmCJfBEpunINa9t8wbV1LgALVOYTByxXsHgdmohkn5Z9QIT8biyEwARgqH2HclHluZwLbndwOkHy+hENZXzKuP3TCFyhSldCSR7aI9jZcas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754065763; c=relaxed/simple; bh=OPMk50152CbDcSTVxWx/o6VVP+6xHHgw3kyuwvYG5oo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VVhu7kJRLs1zotyKb3qKmAphrWaTlRFOeGZEpIUnoG7ZqaOovF1aZCHNQRvm0dEvXdbt9yxFBPs3Y50/cg9ZUNBCRvG69JZ64hOthGhCC69cTTIfbyEnZ89vY+KgUiO3mZZk9ptAQ94LMYT0uaxCH0iI3pybp1nwNq3ZtfeSG6E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AXbKbupr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AXbKbupr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE4D3C4CEE7; Fri, 1 Aug 2025 16:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754065762; bh=OPMk50152CbDcSTVxWx/o6VVP+6xHHgw3kyuwvYG5oo=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To:From; b=AXbKbuprNQNLOx1ph4dQlQFtkIxjhm8wa7VME+hTFLaTucypLjoL0dFoqjYJrvlla RM6tK+//moxJ+AJi6ak2bx0uy5QQpdEPuw7kiMbaDzaRUVKmjSOEkgGE5Me62Hk31l mDN2OdCG23S0ewORYr4H9As8cQpmupyOgAhEF5DbW3/HQcMTrQREfMyMehgMKaWIFS A5YQ23NZf/fp2pqNOmKAEc/ahaygjUHiYpWu2rx6Fgnw0XF+H9NR56qAfmnY9RWIqp 1AxJEIK6Ugh8BRV8jqKql+pYUCBZOeu8mP8Ck40O+G9mcdmG219PvhqeUifP/QrXE1 LZkoOF5dzKVGw== Message-ID: <1ca365a4-13b0-4f43-8568-058e566d0ef7@kernel.org> Date: Fri, 1 Aug 2025 18:29:20 +0200 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Daniel Gomez Subject: Re: [PATCH v2 7/9] all: run black To: Chuck Lever Cc: Luis Chamberlain , Daniel Gomez , kdevops@lists.linux.dev References: <20250730060147.182140-1-mcgrof@kernel.org> <20250730060147.182140-8-mcgrof@kernel.org> <91f83d54-8375-4016-ab53-7a210437d39b@kernel.org> Content-Language: en-US From: Daniel Gomez Organization: kernel.org In-Reply-To: <91f83d54-8375-4016-ab53-7a210437d39b@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/08/2025 14.55, Chuck Lever wrote: > On 8/1/25 4:12 AM, Daniel Gomez wrote: >> >> >> On 31/07/2025 14.57, Daniel Gomez wrote: >>> On 30/07/2025 08.01, Luis Chamberlain wrote: >>>> Run black to fix tons of styling issues with tons of Python scripts. >>>> In order to help bots ensure they don't add odd styling we need a >>>> convention. >>>> >>>> Signed-off-by: Luis Chamberlain >>> >>> Acked-by: Daniel Gomez >>> >>> FYI, I'm working on b4 check stuff mentioned in the other thread. I think this >>> is really nice but it would be awesome to also extend it to Ansible files using >>> the Ansible linter: >>> >>> ansible-lint --help >>> {...} >>> --fix [WRITE_LIST] Allow ansible-lint to perform auto-fixes, including YAML >>> reformatting > > I use ansible-lint extensively before commit. Linting existing kdevops > files is still a bit of jungle, so ansible-lint would have to be > directed only at new files. It's wild. I've sent an RFC with this: git show --shortstat HEAD 234 files changed, 5308 insertions(+), 5098 deletions(-) git show HEAD | grep -c '^@@' 735 Hopefully this will raise a bit the bar with the format. Next challenge is to try to keep it. > > >>> So, these changes with black/ansible-lint, etc make sense if: >>> 1. Add b4 integration >>> 2. Make CI run the scripts as well (make style, make check, etc) >>> >>> But I suspect a minimal testing may be needed. >>> >>> Thoughts? >> >> I'll send an RFC with more details. >