Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MNT Remove absolute imports #19668

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

Merged
merged 1 commit into from
Mar 14, 2021

Conversation

MarcoGorelli
Copy link
Contributor

@MarcoGorelli MarcoGorelli commented Mar 12, 2021

Reference Issues/PRs

Issue #13629 asked to remove absolute imports - however, it looks like there's still a few around

What does this implement/fix? Explain your changes.

Converts the remaining absolute imports (excluding those in tests and setup.py files) to relative

Any other comments?

I found these while testing out absolufy-imports, which I ran with the --never flag. I could add this to the CI lint checks if you find it useful

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @MarcoGorelli !

I would prefer not to have the absolufy-imports check for now.

@MarcoGorelli
Copy link
Contributor Author

Fair enough, thanks for your approval, this was really useful to test it out on (I didn't know that from .import was valid syntax)!

Copy link
Member

@lorentzenchr lorentzenchr left a comment

Choose a reason for hiding this comment

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

LGTM. @MarcoGorelli Thank you for this PR.

@lorentzenchr lorentzenchr changed the title Remove absolute imports MNT Remove absolute imports Mar 14, 2021
@lorentzenchr lorentzenchr merged commit e3e4a77 into scikit-learn:main Mar 14, 2021
@MarcoGorelli MarcoGorelli deleted the relative-imports branch March 14, 2021 11:56
marrodion pushed a commit to marrodion/scikit-learn that referenced this pull request Mar 17, 2021
@glemaitre glemaitre mentioned this pull request Apr 22, 2021
12 tasks
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.