()
| 96 | # --- S015: do not hardcode current or future UTC year as test "now" --- |
| 97 | # Flag year >= current UTC year at lint time. Module/class scope + freeze_time(datetime(...)). |
| 98 | def _s015_msg() -> str: |
| 99 | return ( |
| 100 | "S015 Do not hardcode datetime with current or future UTC year at module/class " |
| 101 | "scope or in freeze_time(...); use before_now(...), now-timedelta, or an older fixed year" |
| 102 | ) |
| 103 | |
| 104 | |
| 105 | def _is_tests_path(filename: str) -> bool: |
no outgoing calls