-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Convert all relative imports to absolute imports #16311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[py] Convert all relative imports to absolute imports #16311
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
User description
💥 What does this PR do?
This PR converts all relative imports used in the Python bindings to absolute imports and adds a ruff linting rule to disallow them in the future.
Previously, we used a mix of relative and absolute imports. This unifies how we import modules using the preferred method.
🔄 Types of changes
PR Type
Other
Description
Convert all relative imports to absolute imports
Add ruff linting rule to prevent future relative imports
Standardize import style across Python bindings
Diagram Walkthrough
File Walkthrough
31 files
Convert relative exception imports to absolute
Convert all webdriver relative imports to absolute
Convert chrome options and service imports
Convert action chain relative imports to absolute
Convert action builder relative imports to absolute
Convert input device import to absolute
Convert key action relative imports to absolute
Convert key input relative imports to absolute
Convert pointer action relative imports to absolute
Convert pointer input relative imports to absolute
Convert wheel action relative imports to absolute
Convert wheel input relative imports to absolute
Convert session import to absolute
Convert log and session imports to absolute
Convert account import to absolute
Convert edge options and service imports
Convert firefox relative imports to absolute
Convert IE options and service imports
Convert command import to absolute
Convert command import to absolute
Convert remote module relative imports to absolute
Convert by and command imports to absolute
Convert command import to absolute
Convert all remote webdriver relative imports
Convert command and shadowroot imports to absolute
Convert safari relative imports to absolute
Convert event listener import to absolute
Convert support module imports to absolute
Convert select and wait imports to absolute
Convert webkitgtk options and service imports
Convert wpewebkit options and service imports
1 files
Add TID252 rule to prevent relative imports