Skip to content
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

Convert to Absolute Imports [AARD-1737] #1013

Merged
merged 13 commits into from
Aug 9, 2024
Merged

Conversation

BrandonPacewic
Copy link
Member

@BrandonPacewic BrandonPacewic commented Jul 4, 2024

  • Moved all relative imports to be absolute to the whole project.
  • Removed general_imports.py and all code that was running on some form of import *.
  • Found and fixed some hanging state that existed in silent bugs.
    • Previously cmdDefs in MarkingMenu.py was not being reset, moving into an __init__ structure made this obvious.
  • Added an __init__ file to contain the global and saved state. This state will persist through restarts of the exporter.
  • And, of course, removed more lines of code than I added 🙃

JIRA Issue

@BrandonPacewic BrandonPacewic changed the title AARD-1737: Convert to Absolute Imports Convert to Absolute Imports [AARD-1737] Aug 6, 2024
@BrandonPacewic BrandonPacewic marked this pull request as ready for review August 6, 2024 18:01
@BrandonPacewic BrandonPacewic requested review from HunterBarclay and a team as code owners August 6, 2024 18:01
@BrandonPacewic BrandonPacewic requested review from PepperLola and azaleacolburn and removed request for a team August 6, 2024 18:01
Copy link
Member Author

@BrandonPacewic BrandonPacewic left a comment

Choose a reason for hiding this comment

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

@HunterBarclay Looks like the formatter for the exporter broke. My best guess is that the version of isort that runs on linux is behaving differently than the one for mac and windows. Might just need to disable it for now.

All files in this PR are formatting correctly.

Edit:

Check #1081 for the fix.

Copy link
Member

@azaleacolburn azaleacolburn left a comment

Choose a reason for hiding this comment

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

LGTM

@HunterBarclay HunterBarclay merged commit 5d4e5e4 into dev Aug 9, 2024
12 of 13 checks passed
@HunterBarclay HunterBarclay deleted the branp/1737/imported-fixups branch August 9, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants