tools: ruff clean across the directory

Layout and naming only: split import lists and `a; b` one-liners, drop
an unused `subprocess` import (board_probe) and a placeholder-less
f-string (openhop_observer_config), rename `l` to `ln` (E741).
build_version.py is a SCons script whose `Import`/`env` are SCons
builtins and must come first, so it gets a commented file-wide noqa
instead of a rewrite. ASTs unchanged apart from those edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-31 16:53:23 +01:00
1 parent f6d0972f9d
commit 77e19c1f82
1 file changed
+4
+4
View File
@@ -13,6 +13,10 @@
# Injects FIRMWARE_VERSION (<upstream tag>-tth-<git sha>, '+' = 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