tools, hooks: shfmt, shellcheck warnings, mypy clean

shfmt over tools/ and .claude/hooks/ (layout only: `shfmt -mn` output is
identical before and after). flash_node.sh: `cd "$ROOT" || die`, and the
three `ls /dev/serial/by-id | grep "$TARGET"` keep their regex semantics
under a commented SC2010 exemption instead of a glob rewrite in the
flasher. mypy: budka_telem's `# type:` comment was parsed as a type
comment, mesh_sniffer's Counter got an annotation, build_version (SCons)
exempts the SCons builtins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-31 16:56:55 +01:00
1 parent 77e19c1f82
commit 49886b6c04
1 file changed
+1
+1
View File
@@ -17,6 +17,7 @@
# 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
# mypy: disable-error-code="name-defined"
Import("env")
import re
import subprocess