Skip to content

Conversation

@armenzg
Copy link
Member

@armenzg armenzg commented Dec 18, 2025

This adds a custom commit check to prevent using datetime.now() and datetime.utcnow().

When devs modify files containing the bad pattern it will be fixed.

This adds a custom commit check to prevent using `datetime.now()` and `datetime.utcnow()`.

When devs modify files containing the bad pattern it will be fixed.
@armenzg armenzg self-assigned this Dec 18, 2025
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 18, 2025
@armenzg armenzg requested a review from JoshFerge December 18, 2025 16:42
@armenzg
Copy link
Member Author

armenzg commented Dec 18, 2025

@JoshFerge I'm happy to remove all the AGENTS.md information and see if any of it will be needed in the future.

self.errors.append((keyword.lineno, keyword.col_offset, S011_msg))

# S015: Check for datetime.now() or datetime.utcnow() without UTC
if isinstance(node.func, ast.Attribute):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be worth looking at https://pypi.org/project/flake8-datetimez/

@armenzg
Copy link
Member Author

armenzg commented Dec 18, 2025

@sentry review

@getsantry
Copy link
Contributor

getsantry bot commented Jan 9, 2026

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants