From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8B2581E231F for ; Wed, 30 Jul 2025 06:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753855312; cv=none; b=kZMgLkVUXZnuvb/Af7OsYyHmZHI/xl4ORHxIP0s2W9Y1UUhjOhNnpvpn1l9PTjQfzfLJ9ZoqFmBFCPZo7+gAAzmeyJvmpwp4/NAGlxPYU3KJFbiKezbL2xdVv957RftThNd4O/OLgXmoZsZmN5Lfv6hyJp7xz9QcehUM59F5Ouk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753855312; c=relaxed/simple; bh=xYz49sKs0eHf9BPzL/9KwOgyRAniimPgSk1b3S0Ol4w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SpfO/coeSNDwoFOCKIHwHyW/ETdnAKCLJqITlD4l0BtlgPJ+M3mty4U/PzEiSPwbIPfl0VhI/P9FlltUI81Pu4Oj4gJe1LySHUazYhFnOjeWKzdQYpICFpkzezkh+rym5tgwawKNkhy0bxrSvTrbkUDTEhJ7GlW2+HvJJjOMlIc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=mZpFFPEK; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="mZpFFPEK" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=Wtzb6QcCGASImnxM1CrivXAAnfYWk4Tk2bcAoAzRf1g=; b=mZpFFPEKquRNxbqe6YB2gOuIrb CybrQ+iXiE9VWxouiybqa7koi1J7l3Qam2dxcT90iPTmMr4X9+RDBMi79ZYaMZHwjUQjXygvJ3nGF HoqqqK++YlULJjQ1620Ihks971Dn69NVCd9pWTI6NvsAseZzKg0YYoZsv6w6OZjOoMaKFfmozw8V+ cDRwCtb0vyAsWbNiQJuqJrqwZtTT9CxsayyBF6v6n6oBLnFwHcBJSwfO81XkJVAGwwrbV5HOv2c77 nqPk9iueBAcc6Q6tsQ+Nw+fc5ERo0P+bskUcPogJy4umoSmzVjN63l/TpdxGVP6thwS7pugteR6fk qxMJ+Mhg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugzss-00000000lOe-45wI; Wed, 30 Jul 2025 06:01:50 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH v2 5/9] Makefile: move styling to scripts/style.Makefile Date: Tue, 29 Jul 2025 23:01:41 -0700 Message-ID: <20250730060147.182140-6-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250730060147.182140-1-mcgrof@kernel.org> References: <20250730060147.182140-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain Monitoring styling enhancements turn out to be its own thing, move this effort to its own file to keep the top level Makefile tidy. Signed-off-by: Luis Chamberlain --- Makefile | 13 +------------ scripts/style.Makefile | 12 ++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 scripts/style.Makefile diff --git a/Makefile b/Makefile index 2c72042d..c88637c2 100644 --- a/Makefile +++ b/Makefile @@ -246,18 +246,7 @@ include scripts/tests.Makefile include scripts/ci.Makefile include scripts/archive.Makefile include scripts/defconfig.Makefile - -PHONY += fix-whitespace-last-commit -fix-whitespace-last-commit: - $(Q)git diff --name-only --diff-filter=M HEAD~1..HEAD | xargs -r python3 scripts/fix_whitespace_issues.py - -PHONY += style -style: - $(Q)if which black > /dev/null ; then black . || true; fi - $(Q)python3 scripts/detect_whitespace_issues.py || true - $(Q)python3 scripts/detect_indentation_issues.py || true - $(Q)python3 scripts/check_commit_format.py || true - $(Q)python3 scripts/ensure_newlines.py || true +include scripts/style.Makefile PHONY += clean clean: diff --git a/scripts/style.Makefile b/scripts/style.Makefile new file mode 100644 index 00000000..2108eb4c --- /dev/null +++ b/scripts/style.Makefile @@ -0,0 +1,12 @@ +PHONY += fix-whitespace-last-commit +fix-whitespace-last-commit: + $(Q)git diff --name-only --diff-filter=M HEAD~1..HEAD | xargs -r python3 scripts/fix_whitespace_issues.py + +PHONY += style +style: + $(Q)if which black > /dev/null ; then black . || true; fi + $(Q)python3 scripts/detect_whitespace_issues.py || true + $(Q)python3 scripts/detect_indentation_issues.py || true + $(Q)python3 scripts/check_commit_format.py || true + $(Q)python3 scripts/ensure_newlines.py || true + -- 2.47.2