(ci) fix false print detection in commit

The method call `.thumbprint(...)` was detected as a print statement.
Restrict detection to words `print` and `pprint`.
This commit is contained in:
Quentin BEY
2025-03-13 14:27:26 +01:00
committed by BEY Quentin
parent c4dd4ae3fd
commit 285647a8a9
+1 -1
View File
@@ -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!'