Skip to content

Conversation

@TheCommCraft
Copy link
Collaborator

Absolute first party imports are encouraged to be used instead of relative parent imports.

@TheCommCraft TheCommCraft requested a review from faretek1 June 4, 2025 08:49
@faretek1
Copy link
Collaborator

faretek1 commented Jun 4, 2025

got it. looks like i should edit scratchattach.editor to do this too?

Copy link
Collaborator

@faretek1 faretek1 left a comment

Choose a reason for hiding this comment

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

so long as it has been tested, it seems to be ok to merge

def events(self, *, use_logs=False):
if self._session is None or use_logs:
from ..eventhandlers.cloud_events import CloudLogEvents
from scratchattach.eventhandlers.cloud_events import CloudLogEvents
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a way to make this into a top-level import? Imports within functions are not ideal

return None
from ..site import project
from ..utils import exceptions
from scratchattach.site import project
Copy link
Collaborator

Choose a reason for hiding this comment

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

If possible, we should try to make these imports top-level

Copy link
Collaborator Author

@TheCommCraft TheCommCraft Jun 4, 2025

Choose a reason for hiding this comment

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

?
edit: oh yeah

@TheCommCraft TheCommCraft merged commit 0591a25 into main Jun 4, 2025
@TheCommCraft TheCommCraft deleted the first_party_imports branch June 9, 2025 14:20
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