From e9178342a08d0261104aef559e9a670a2d19bc69 Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Mon, 18 May 2026 21:09:13 -0700 Subject: [PATCH] chore: suppress ruff F821 on SCons-injected globals in patch_jpegdec --- scripts/patch_jpegdec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/patch_jpegdec.py b/scripts/patch_jpegdec.py index cd54231d..fb446b9d 100644 --- a/scripts/patch_jpegdec.py +++ b/scripts/patch_jpegdec.py @@ -16,13 +16,13 @@ Patches live in `scripts/jpegdec_patches/` as one-commit-per-fix files (see the file headers for context). Applied in lexical order. """ -Import("env") +Import("env") # noqa: F821 (SCons-injected global) import os import subprocess import sys -PATCH_DIR = os.path.join(env["PROJECT_DIR"], "scripts", "jpegdec_patches") +PATCH_DIR = os.path.join(env["PROJECT_DIR"], "scripts", "jpegdec_patches") # noqa: F821 def patch_jpegdec(env): @@ -82,4 +82,4 @@ def _git_apply_succeeds(jpeg_dir, patch_path, *, reverse): ).returncode == 0 -patch_jpegdec(env) +patch_jpegdec(env) # noqa: F821