Jason
4578621c75
fix: restore T20-stripped print() calls in cosim scripts; add 60 mem validation tests
...
- Restored print() output in 6 generator/cosim scripts that ruff T20
had silently stripped, leaving dead 'for _var: pass' stubs and
orphaned expressions. Files restored from pre-ruff commit and
re-linted with T20/ERA/ARG/E501 per-file-ignores.
- Removed 5 dead/self-blessing scripts (compare.py, compare_doppler.py,
compare_mf.py, validate_mem_files.py, LUT.py).
- Added test_mem_validation.py: 60 pytest tests validating .mem files
against independently-derived ground truth (twiddle factors, chirp
waveforms, memory addressing, segment padding).
- Updated CI cross-layer-tests job to include test_mem_validation.py.
- All 150 tests pass (61 GUI + 29 cross-layer + 60 mem validation).
2026-04-13 20:36:28 +05:45
Jason
2106e24952
fix: enforce strict ruff lint (17 rule sets) across entire repo
...
- Expand ruff config from E/F to 17 rule sets (B, RUF, SIM, PIE, T20,
ARG, ERA, A, BLE, RET, ISC, TCH, UP, C4, PERF)
- Fix 907 lint errors across all Python files (GUI, FPGA cosim,
schematics scripts, simulations, utilities, tools)
- Replace all blind except-Exception with specific exception types
- Remove commented-out dead code (ERA001) from cosim/simulation files
- Modernize typing: deprecated typing.List/Dict/Tuple to builtins
- Fix unused args/loop vars, ambiguous unicode, perf anti-patterns
- Delete legacy GUI files V1-V4
- Add V7 test suite, requirements files
- All CI jobs pass: ruff (0 errors), py_compile, pytest (92/92),
MCU tests (20/20), FPGA regression (25/25)
2026-04-12 14:21:03 +05:45
Jason
11aa590cf2
fix: full-repo ruff lint cleanup and CI migration to uv
...
Resolve all 374 ruff errors across 36 Python files (E501, E702, E722,
E741, F821, F841, invalid-syntax) bringing `ruff check .` to zero
errors repo-wide with line-length=100.
Rewrite CI workflow to use uv for dependency management, whole-repo
`ruff check .`, py_compile syntax gate, and merged python-tests job.
Add pyproject.toml with ruff config and uv dependency groups.
CI structure proposed by hcm444.
2026-04-09 02:05:34 +03:00