Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ruff rule DTZ003 and DZT004 #6205

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Conversation

VIKTORVAV99
Copy link
Member

This PR enables the ruff rule DZT003 which will dissallow usage of datetime.utcnow() and rule DZT004 which will dissallow the usage of datetime.utcfromtimestamp().

Both of these functions are deprecated and will be removed in future python versions and have direct replacements.

@github-actions github-actions bot added parser dependencies Pull requests that update a dependency file labels Nov 30, 2023
Copy link
Member

@madsnedergaard madsnedergaard left a comment

Choose a reason for hiding this comment

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

One comment, otherwise LGTM

parsers/ESKOM.py Outdated Show resolved Hide resolved
@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) November 30, 2023 22:05
@VIKTORVAV99 VIKTORVAV99 merged commit 4eb4d4e into master Nov 30, 2023
10 checks passed
@VIKTORVAV99 VIKTORVAV99 deleted the vik/enable_rule_DTZ003 branch November 30, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants