Skip to content

Conversation

@nhuet
Copy link
Contributor

@nhuet nhuet commented Dec 9, 2025

See https://docs.astral.sh/ruff/rules/unused-import/

  • pre-commit config updated to check and fix unused imports
  • pre-commit run -a
  • use redundant alias to allow re-export in init.py files
  • directly import the necessary submodules to avoid raising "unused import" error when checking if gurobi or toulbar2 is installed
  • put these checks after all other imports to have a proper sort of imports

@nhuet nhuet force-pushed the ruff-unused-imports branch from a2f7749 to 819f680 Compare December 11, 2025 10:16
@nhuet nhuet force-pushed the ruff-unused-imports branch from 819f680 to 31b1789 Compare December 19, 2025 14:21
See https://docs.astral.sh/ruff/rules/unused-import/

- pre-commit config updated to check and fix unused imports
- pre-commit run -a
- use redundant alias to allow re-export in __init__.py files
- directly  import the necessary submodules to avoid raising "unused
  import" error when checking if gurobi or toulbar2 is installed
- put these checks after all other imports to have a proper sort of
  imports
@nhuet nhuet force-pushed the ruff-unused-imports branch from 31b1789 to 33a8034 Compare January 5, 2026 07:32
@g-poveda g-poveda merged commit 99e93b9 into airbus:master Jan 5, 2026
13 checks passed
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.

2 participants