Skip to content

refactor(tests): use relative imports in ./tests#1848

Merged
danceratopz merged 2 commits into
ethereum:mainfrom
kclowes:refactor/relative-imports
Jul 3, 2025
Merged

refactor(tests): use relative imports in ./tests#1848
danceratopz merged 2 commits into
ethereum:mainfrom
kclowes:refactor/relative-imports

Conversation

@kclowes

@kclowes kclowes commented Jul 2, 2025

Copy link
Copy Markdown
Collaborator

🗒️ Description

Use only relative imports in the tests/ directory. @gurukamath or @danceratopz let me know if there is more work to do here in other directories as well.

🔗 Related Issues or PRs

Fixes #1844

✅ Checklist

  • All: Ran fast tox checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    uvx --with=tox-uv tox -e lint,typecheck,spellcheck,markdownlint
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered adding an entry to CHANGELOG.md.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

@kclowes kclowes added scope:tests Scope: Changes EL client test cases in `./tests` type:refactor Type: Refactor labels Jul 2, 2025
@kclowes kclowes changed the title refactor(tests): Use relative imports in tests dir refactor(tests): Use relative imports in tests directory Jul 2, 2025
@kclowes kclowes force-pushed the refactor/relative-imports branch from da97580 to 218a340 Compare July 2, 2025 21:20

@danceratopz danceratopz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for jumping straight on this one!

I'd say let's get this merged as-is for ./tests and potentially on to the next for ./src/.

@gurukamath gurukamath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Perhaps it is an overkill here but we do have a custom lint that enforces this in our CI. See this if interested.

@kclowes kclowes marked this pull request as ready for review July 3, 2025 13:34
@danceratopz danceratopz merged commit 5d02253 into ethereum:main Jul 3, 2025
14 checks passed
@danceratopz danceratopz changed the title refactor(tests): Use relative imports in tests directory refactor(tests): use relative imports in ./tests Jul 3, 2025
kclowes added a commit to kclowes/execution-spec-tests that referenced this pull request Oct 20, 2025
Co-authored-by: danceratopz <danceratopz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:tests Scope: Changes EL client test cases in `./tests` type:refactor Type: Refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(tests): replace absolute imports with relative imports

3 participants