Skip to content

Conversation

Copy link
Contributor

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
@eduardoChaucaGallegos eduardoChaucaGallegos merged commit efd4d4d into master Sep 10, 2025
22 checks passed
@eduardoChaucaGallegos eduardoChaucaGallegos deleted the ticket/SG-38306-python2-imports-order branch September 10, 2025 13:01
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.

4 participants