Commit c7d5816
committed
chore: Clean up imports and remove unused __all__ export list
Now that all tests import directly from the modular structure, removed
the backward compatibility layer from changelog_helper.py.
**Changes:**
- Removed __all__ export list (24 exports)
- Removed unused backward compatibility imports
- Kept only imports actually used by get_new_changelog_md() and main()
- Removed section comment headers for cleaner code
**Remaining imports (only what's used):**
- get_parsed_args (used in main)
- AttackChangesEncoder (used in get_new_changelog_md)
- DiffStix (used in get_new_changelog_md)
- markdown_to_html (used in get_new_changelog_md)
- write_detailed_html (used in get_new_changelog_md)
- layers_dict_to_files (used in get_new_changelog_md)
- LAYER_DEFAULTS (used as default parameter)
**File size reduction:**
- From 214 lines to 162 lines (24% reduction)
- Removed 52 lines of backward compatibility code
**Verification:**
- Syntax check: ✓ passed
- Import validation: ✓ all imports match module exports
- Test import validation: ✓ all test imports valid
- Ruff format: ✓ no changes needed1 parent 8b91aa3 commit c7d5816
1 file changed
Lines changed: 1 addition & 51 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | 12 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 13 | + | |
24 | 14 | | |
25 | | - | |
26 | | - | |
27 | 15 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 16 | | |
67 | 17 | | |
68 | 18 | | |
| |||
0 commit comments