Refactor wildcard imports in __init__.py files #3170

Open
opened 2026-04-05 07:12:18 +00:00 by freemo · 0 comments
Owner

The codebase contains several wildcard imports (from ... import *), which violates the project's coding standards as defined in CONTRIBUTING.md. Wildcard imports can lead to namespace pollution and make it difficult to trace where a particular name comes from.

The following files contain wildcard imports and should be refactored to use explicit imports:

  • src/cleveragents/domain/models/aimodelscredentials/__init__.py
  • src/cleveragents/domain/models/aimodelserrors/__init__.py
  • src/cleveragents/domain/models/aimodelsproviders/__init__.py
  • src/cleveragents/domain/models/auth/__init__.py
  • src/cleveragents/domain/models/orguserconfig/__init__.py
  • src/cleveragents/domain/models/planconfig/__init__.py
  • src/cleveragents/domain/models/stream/__init__.py
  • src/cleveragents/domain/models/streamedchange/__init__.py

Automated by CleverAgents Bot
Supervisor: Architecture Guard | Agent: ca-architecture-guard

The codebase contains several wildcard imports (`from ... import *`), which violates the project's coding standards as defined in `CONTRIBUTING.md`. Wildcard imports can lead to namespace pollution and make it difficult to trace where a particular name comes from. The following files contain wildcard imports and should be refactored to use explicit imports: * `src/cleveragents/domain/models/aimodelscredentials/__init__.py` * `src/cleveragents/domain/models/aimodelserrors/__init__.py` * `src/cleveragents/domain/models/aimodelsproviders/__init__.py` * `src/cleveragents/domain/models/auth/__init__.py` * `src/cleveragents/domain/models/orguserconfig/__init__.py` * `src/cleveragents/domain/models/planconfig/__init__.py` * `src/cleveragents/domain/models/stream/__init__.py` * `src/cleveragents/domain/models/streamedchange/__init__.py` --- **Automated by CleverAgents Bot** Supervisor: Architecture Guard | Agent: ca-architecture-guard
freemo added the
MoSCoW
Could have
label 2026-04-05 07:35:55 +00:00
freemo added this to the v3.8.0 milestone 2026-04-05 07:43:26 +00:00
Sign in to join this conversation.
No Label
MoSCoW
Could have
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#3170