Files
LEDMatrix/scripts/dev
Chuck 55161f309b fix: remove unused imports and bare exception aliases (pyflakes F401/F841)
Remove unused imports across 86 files in src/, web_interface/, test/,
and scripts/ using autoflake. No logic changes — only dead import
statements and unused names in from-imports are removed.

Also remove bare exception aliases where the variable is never
referenced in the handler body:
- src/cache/disk_cache.py: except (IOError, OSError, PermissionError) as e
- src/cache_manager.py: except (OSError, IOError, PermissionError) as perm_error
- src/plugin_system/resource_monitor.py: except Exception as e
- web_interface/app.py: except Exception as read_err

86 files changed, 205 lines removed, 18 pre-existing test failures unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 10:41:55 -04:00
..
2025-12-27 14:15:49 -05:00
2025-12-27 14:15:49 -05:00

Development Scripts

This directory contains scripts and utilities for development and testing.

Scripts

  • dev_plugin_setup.sh - Sets up plugin development environment by linking plugin repositories
  • run_emulator.sh - Runs the LED Matrix display in emulator mode (for development without hardware)
  • validate_python.py - Validates Python files for common formatting and syntax errors

Usage

Plugin Development Setup

./scripts/dev/dev_plugin_setup.sh link-github <plugin-name>

Running Emulator

./scripts/dev/run_emulator.sh

Validating Python Files

python3 scripts/dev/validate_python.py <file.py>