Skip to content

SG-38306 Python2 Removal - Part 1 - Import order #398

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reorganizes import statements across multiple files to follow proper Python import ordering conventions as part of a Python 2 removal effort. The changes are preparatory work to make subsequent PRs in the Python 2 removal series easier to review.

  • Standardizes import order by grouping standard library imports together and separating them from third-party/local imports
  • Adds blank lines to properly separate import groups according to PEP 8 conventions
  • Alphabetizes imports within their respective groups for better maintainability

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/test_unit.py Adds blank line to separate local imports from standard library imports
tests/test_client.py Moves standard library imports to the top and groups them together
tests/test_api.py Reorganizes all imports into proper groups with standard library first, then third-party, then local imports
shotgun_api3/shotgun.py Reorganizes imports to group standard library imports together before third-party/local imports

@julien-lang julien-lang requested a review from a team July 17, 2025 14:00
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.

1 participant