What problem does it solve?
This Skill enforces strict import rules within the FLEXT codebase, preventing common Python pitfalls like wildcard imports, relative imports, and outdated typing syntax, ensuring code clarity and maintainability.
Core Features & Use Cases
- Import Hygiene: Enforces rules against wildcard and relative imports.
- Modern Typing: Promotes the use of modern Python typing features over legacy
typing module constructs.
- Domain Isolation: Prevents direct imports of underlying libraries (e.g.,
grpc, ldap3) and enforces the use of FLEXT wrappers.
- Use Case: When developing a new module within FLEXT, this Skill automatically flags any import statements that violate the established project conventions, guiding developers to write cleaner, more robust code.
Quick Start
Run the flext-import-rules skill to verify all Python files adhere to FLEXT's import guidelines.