Skip to content

Mark the re-exports of __init__.py for ruff - #23

Merged
ru551n merged 1 commit into
VUnit:mainfrom
ru551n:fix/init-reexports
Oct 13, 2026
Merged

ru551n merged 1 commit into
VUnit:mainfrom
ru551n:fix/init-reexports

Conversation

@ru551n

@ru551n ru551n commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Makes the lint workflow pass on main again.

#12, merged after #22 added ruff, imports set_relative_file_base and FILE_BASE_VARIABLE into __init__.py so that run scripts can use vunit_python_bridge.set_relative_file_base(). They aren't used in __init__.py itself, so ruff reports them as unused imports (F401), and the lint run on main fails. So does the lint check of every open PR, which all inherit it.

This imports them as X as X, which marks a name as a deliberate re-export for ruff. Nothing else changes.

Tests

  • ruff check and the license-header check pass.
  • pytest: 101 passed.
  • vunit_python_bridge.set_relative_file_base and vunit_python_bridge.FILE_BASE_VARIABLE are still available.

🤖 Generated with Claude Code

set_relative_file_base and FILE_BASE_VARIABLE are imported into
__init__.py for run scripts, not used there, and ruff reported them as
unused imports (F401), which fails the lint workflow on main since VUnit#12.
Import them as X as X, which marks them as re-exports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ru551n
ru551n merged commit 5e9e586 into VUnit:main Oct 13, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant