Skip to content

Commit 3c7e080

Browse files
robtaylorclaude
andcommitted
Fix linting errors in platform module
- Fix typo: _ensure_chipflow_root → ensure_chipflow_root in signatures.py - Add missing exports to platform/__init__.py __all__ This fixes F821 (undefined name) and F401 (unused import) linting errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent fd3a449 commit 3c7e080

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

chipflow_lib/platform/__init__.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,15 @@
4040
'SimStep',
4141
'SoftwareStep',
4242
'BoardStep',
43-
# Simulation platform (accessed via chipflow_lib.platforms.sim)
43+
# Platforms
4444
'SimPlatform',
45+
'SiliconPlatform',
46+
'SiliconPlatformPort',
47+
'SoftwarePlatform',
48+
# Base classes
49+
'StepBase',
4550
# IO Signatures
51+
'IOSignature',
4652
'OutputIOSignature',
4753
'InputIOSignature',
4854
'BidirIOSignature',
@@ -52,9 +58,19 @@
5258
'UARTSignature',
5359
'GPIOSignature',
5460
'QSPIFlashSignature',
61+
# IO Configuration
62+
'IOModel',
63+
'IOModelOptions',
64+
'IOTripPoint',
65+
'Sky130DriveMode',
5566
# IO Utilities
5667
'attach_data',
5768
'SoftwareDriverSignature',
5869
'SoftwareBuild',
59-
'Sky130DriveMode',
70+
# Utilities
71+
'setup_amaranth_tools',
72+
'top_components',
73+
'get_software_builds',
74+
# Schemas
75+
'IO_ANNOTATION_SCHEMA',
6076
]

chipflow_lib/platform/io/signatures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class BinaryData:
7070
type: Literal["BinaryData"] = "BinaryData"
7171

7272
def __init__(self, *, filename: Path, offset=0):
73-
self.build_dir = _ensure_chipflow_root() / 'build' / 'software'
73+
self.build_dir = ensure_chipflow_root() / 'build' / 'software'
7474
if Path(filename).is_absolute():
7575
self.filename = filename
7676
else:

0 commit comments

Comments
 (0)