From 18edcf8537672d21290fe028e66b0e0383ca0025 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Wed, 4 Feb 2026 12:35:29 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(ci)=20limit=20print=20check=20to?= =?UTF-8?q?=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We added a feature to print documents directly from the browser. The function is called `window.print()`, this name collides with Python's `print()` function. To avoid false positives in our CI when checking for print statements, we limit the search to only the backend code. --- .github/workflows/impress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/impress.yml b/.github/workflows/impress.yml index 86867b5a..eed833ca 100644 --- a/.github/workflows/impress.yml +++ b/.github/workflows/impress.yml @@ -27,7 +27,7 @@ jobs: - name: Enforce absence of print statements in code if: always() run: | - ! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- . ':(exclude)**/impress.yml' | grep "print(" + ! git diff origin/${{ github.event.pull_request.base.ref }}..HEAD -- src/backend ':(exclude)**/impress.yml' | grep "print(" - name: Check absence of fixup commits if: always() run: |