-
-
Couldn't load subscription status.
- 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 absoluteConvert all webdriver relative imports to absoluteConvert chrome options and service importsConvert action chain relative imports to absoluteConvert action builder relative imports to absoluteConvert input device import to absoluteConvert key action relative imports to absoluteConvert key input relative imports to absoluteConvert pointer action relative imports to absoluteConvert pointer input relative imports to absoluteConvert wheel action relative imports to absoluteConvert wheel input relative imports to absoluteConvert session import to absoluteConvert log and session imports to absoluteConvert account import to absoluteConvert edge options and service importsConvert firefox relative imports to absoluteConvert IE options and service importsConvert command import to absoluteConvert command import to absoluteConvert remote module relative imports to absoluteConvert by and command imports to absoluteConvert command import to absoluteConvert all remote webdriver relative importsConvert command and shadowroot imports to absoluteConvert safari relative imports to absoluteConvert event listener import to absoluteConvert support module imports to absoluteConvert select and wait imports to absoluteConvert webkitgtk options and service importsConvert wpewebkit options and service imports1 files
Add TID252 rule to prevent relative imports