From 4d2b93e80d27757ef9189c2240f14d4a4873fdcf Mon Sep 17 00:00:00 2001 From: Cail Daley Date: Tue, 30 Jun 2026 15:26:18 +0200 Subject: [PATCH 1/3] test(lint-gate): deliberate ruff violations (F401 + F821) to demo the gate --- _lint_gate_demo.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 _lint_gate_demo.py diff --git a/_lint_gate_demo.py b/_lint_gate_demo.py new file mode 100644 index 00000000..2ddf7684 --- /dev/null +++ b/_lint_gate_demo.py @@ -0,0 +1,7 @@ +"""Throwaway file to demo the develop lint gate. Delete me.""" + +import os # F401: unused import + + +def demo(): + return undefined_thing + 1 # F821: undefined name From 58fabb8b02fdd75f8da863d4fc161b8664294e66 Mon Sep 17 00:00:00 2001 From: Cail Daley Date: Tue, 30 Jun 2026 15:30:54 +0200 Subject: [PATCH 2/3] test(lint-gate): use pull_request trigger so the gate fires pre-merge (throwaway) --- .github/workflows/lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6369b166..60e8f95c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -38,8 +38,8 @@ name: Lint on: push: branches: [develop] - pull_request_target: - branches: [test/lint-gate-base] + pull_request: # TEST ONLY (throwaway branch): pull_request reads the + # workflow from the PR head, so it actually fires pre-merge workflow_dispatch: # One lint run per branch / PR; newer pushes cancel older in-flight runs. @@ -118,7 +118,7 @@ jobs: const report = passed ? '' : fs.readFileSync('report.md', 'utf8'); // ---- PR: speak on the PR itself (comment, auto-updating) ---------- - if (context.eventName === 'pull_request_target') { + if (context.eventName === 'pull_request_target' || context.eventName === 'pull_request') { const pr = context.payload.pull_request; const author = pr.user.login; const MARKER = ''; From 138ed95d358752dd5eba79164ce355d159aeac88 Mon Sep 17 00:00:00 2001 From: Cail Daley Date: Tue, 30 Jun 2026 15:31:56 +0200 Subject: [PATCH 3/3] =?UTF-8?q?test(lint-gate):=20remove=20the=20violation?= =?UTF-8?q?=20=E2=80=94=20gate=20should=20turn=20green?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _lint_gate_demo.py | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 _lint_gate_demo.py diff --git a/_lint_gate_demo.py b/_lint_gate_demo.py deleted file mode 100644 index 2ddf7684..00000000 --- a/_lint_gate_demo.py +++ /dev/null @@ -1,7 +0,0 @@ -"""Throwaway file to demo the develop lint gate. Delete me.""" - -import os # F401: unused import - - -def demo(): - return undefined_thing + 1 # F821: undefined name