Skip to content

[BLOCKED] Organize Python imports with ruff linter isort ruleset#3646

Open
nycrat wants to merge 3 commits intoUBC-Thunderbots:masterfrom
nycrat:avah/ruff_organize_imports
Open

[BLOCKED] Organize Python imports with ruff linter isort ruleset#3646
nycrat wants to merge 3 commits intoUBC-Thunderbots:masterfrom
nycrat:avah/ruff_organize_imports

Conversation

@nycrat
Copy link
Member

@nycrat nycrat commented Mar 14, 2026

Description

To make import statement formatting more consistent in Python files, this PR adds an extra isort ruleset when using ruff for linting.

https://pypi.org/project/isort/

https://docs.astral.sh/ruff/rules/#lint_flake8-annotations_suppress-none-returning

NOTE: CAUSES ERRORS RIGHT NOW SINCE WE HAVE LOTS OF WILDCARD IMPORTS IN THE CODEBASE #3645

Testing Done

Resolved Issues

Length Justification and Key Files to Review

Lots of changes from the linter

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

@nycrat nycrat changed the title Organize Python imports with ruff linter isort ruleset [BLOCKED] Organize Python imports with ruff linter isort ruleset Mar 14, 2026
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