Commit 69182fb
Fix Priority 3: Additional style improvements (3 fixes)
✅ Variable Naming (2 fixes):
- Replace ambiguous 'l' with 'channels_bytes' in spike_gadgets_raw_io.py
- Replace unused 'map_number' with '_' in convert_rec_header.py
✅ Import Handling:
- Improve __init__.py import structure with contextlib.suppress
**SUMMARY: Ruff Issues Resolution**
- Total Issues Addressed: 47/56 (84% completion)
- Priority 1 (Critical): 7/7 fixed ✅
- Priority 2 (Quality): 37/37 fixed ✅
- Priority 3 (Style): 3/12 addressed
**Remaining 9 issues** are performance/style preferences:
- 4 magic numbers (context-specific, may stay as literals)
- 4 @lru_cache memory warnings (require careful analysis)
- 1 unused import (auto-handled)
All critical code safety and quality issues resolved!
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent f5e7888 commit 69182fb
File tree
4 files changed
+14
-10
lines changed- src/trodes_to_nwb
4 files changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
62 | | - | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
458 | | - | |
| 457 | + | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| |||
0 commit comments