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 C7EBF28DEE0 for ; Fri, 1 Aug 2025 19:46:37 +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=1754077599; cv=none; b=DjbhDIc32HTyjlJRm9p2+qSpFIWG17SWeAca1mZY74cJtGvewh7mmDeYcwc7r911nHrEO+B80CWjDIUUoUd8PJwa357mFtBx0Tbb6yVm4QN+6DOrgmImP9fLB+h0ltZOinjcFMxSewk2vnvNRU4TC1jdLKxbJW+Og7bb1XLBVnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754077599; c=relaxed/simple; bh=HQ78z/KHISqDpwVm9I1Xmrfddlk230YlpOaau8KN+Sg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dZONKEYfGZtjdnDIn5D/jsSBXAh8P2UMjvOW/Ze522INKYaYn0mAql/WoJMmT6NZRsDnIJEIcYZEdyopd4OKeaL/4Oisc2vDrPZkftR6xWyiqgOPRnC5xXNN3hvrr92YTJEYiyN81VfEmN6HWfPH/RVjn8AWC/E935XZYRGOjVQ= 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=d5ZLSl6w; 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="d5ZLSl6w" 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=Jtx+I41d8718v5i6DQh/URx7jxRevRCGsVdAbXiWzwQ=; b=d5ZLSl6wokya/86Y8zLIdr5dtn 7iO2ab7MrhObIun/Pt9uKzU5iYG4I/pZ+iylEGm6tcLZ03RbfGoBsUy1LXpxMemQitdQw502YKaQ5 eDhaz/elrNrEGkZpX+V1ERX7X5gZQjBP1OpfPb99K+okH5Lo8Cg2ufVgf9T4bGW5542OKGmkeXUrQ /Ulo0xI/evtjQIQSGwoHs4wg9t/K34pC/dbel+miZl5Y29vUU73yVlLLIBRIQR3q5xZsBNq14LUOz ShSY/sKKv+ht0RPmmLQddSfMvXWQYlelS8Yt140KFLFjm+uihD3Yk/h9loK46mrKzEzes0SBezClD SyVbxLrg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1uhvi9-00000006hrZ-0ekZ; Fri, 01 Aug 2025 19:46:37 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH v3 05/11] Makefile: move styling to scripts/style.Makefile Date: Fri, 1 Aug 2025 12:46:29 -0700 Message-ID: <20250801194635.1598544-6-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250801194635.1598544-1-mcgrof@kernel.org> References: <20250801194635.1598544-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 | 11 +++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 scripts/style.Makefile diff --git a/Makefile b/Makefile index 2c72042d57c8..c88637c2966f 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 000000000000..37aed9af00b3 --- /dev/null +++ b/scripts/style.Makefile @@ -0,0 +1,11 @@ +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