From 285647a8a9f75c40031ab0838ebfc7c70726ef4f Mon Sep 17 00:00:00 2001 From: Quentin BEY Date: Thu, 13 Mar 2025 14:13:02 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(ci)=20fix=20false=20`print`=20detecti?= =?UTF-8?q?on=20in=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The method call `.thumbprint(...)` was detected as a print statement. Restrict detection to words `print` and `pprint`. --- .github/workflows/people.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index 487658a..3f174a4 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -29,7 +29,7 @@ jobs: run: git log - name: Enforce absence of print statements in code run: | - ! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- . ':(exclude)**/people.yml' | grep "print(" + ! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- . ':(exclude)**/people.yml' | grep -E "(\bprint\(|\bpprint\()" - name: Check absence of fixup commits run: | ! git log | grep 'fixup!'