You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
good first issueAccessible entry point for new community contributorspriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsrefactorStructural cleanup or optimization without altering behavior
Part of the ruff lint baseline cleanup (DTZ005/DTZ007 -- datetime.now() without a timezone (naive datetime); datetime.strptime() without a timezone). Chunked out of the larger sub-issue this replaces, so it's a manageable, self-contained pickup.
Findings
gitgalaxy/cobol_refractor_controller.py:280 (DTZ005) -- datetime.datetime.now() called without a tz argument
gitgalaxy/licensing.py:82 (DTZ007) -- Naive datetime constructed using datetime.datetime.strptime() without %z
gitgalaxy/licensing.py:83 (DTZ005) -- datetime.datetime.now() called without a tz argument
gitgalaxy/tools/cobol_to_cobol/cobol_jcl_forge.py:186 (DTZ005) -- datetime.datetime.now() called without a tz argument
Approach
These are a real correctness concern if any of these ever cross a timezone boundary -- check each call site's actual semantics (is it purely local wall-clock comparison, e.g. license expiry, or could it legitimately involve UTC/remote data) before deciding whether to make it tz-aware.
Fix in a small PR, removing resolved entries from tests/ruff_audit_baseline.json (see tests/ruff_audit.py's module docstring for the regen command).
good first issueAccessible entry point for new community contributorspriority: lowUI tweaks, documentation, and minor optimizationspythonPython-specific runtime or environment optimizationsrefactorStructural cleanup or optimization without altering behavior
Activity
fix(licensing): evaluate expiry in UTC; make datetimes tz-aware (#502) (