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