MCPcopy Index your code
hub / github.com/getsentry/sentry / _s015_msg

Function _s015_msg

tools/flake8_plugin.py:98–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(...)).
98def _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
105def _is_tests_path(filename: str) -> bool:

Callers 2

runMethod · 0.85

Calls

no outgoing calls

Tested by 1