From b53558c3a70592d55a7d68bf72e5187839619899 Mon Sep 17 00:00:00 2001 From: TeTeHacko Date: Sat, 31 Oct 2026 16:53:23 +0100 Subject: [PATCH] tools: ruff clean across the directory Co-Authored-By: Claude Opus 5.5 --- tools/build_version.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build_version.py b/tools/build_version.py index 17a96cc5..3fe526d3 100644 --- a/tools/build_version.py +++ b/tools/build_version.py @@ -13,6 +13,10 @@ # Injects FIRMWARE_VERSION (-tth-, '+' = dirty tree) and # FIRMWARE_BUILD_DATE (compile time). NOTE: the define changes every build = # full rebuild each time (~10-30 s) -- the price for an always-fresh timestamp. +# +# SCons script, not a module: `Import` and `env` are SCons builtins and +# Import("env") has to come first, hence the file-wide ruff exemption. +# ruff: noqa: F821, E402 Import("env") import re import subprocess