cli.py: validate_environment uses __import__(os).environ instead of import os #146

Closed
opened 2026-07-06 07:02:37 +00:00 by the.auditor · 0 comments
Owner

src/hottea/cli.py:112 uses __import__("os").environ to check environment variables. This is an unusual pattern — a standard import os at module level would be clearer and more maintainable.

import os  # add at top of file
...
if var not in os.environ:  # use instead of __import__("os").environ

Ref: PR #145

`src/hottea/cli.py:112` uses `__import__("os").environ` to check environment variables. This is an unusual pattern — a standard `import os` at module level would be clearer and more maintainable. ```python import os # add at top of file ... if var not in os.environ: # use instead of __import__("os").environ ``` Ref: PR #145
fuzzy closed this issue 2026-07-06 09:11:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/hottea#146
No description provided.