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

[SEDONA-546] Python linting enable rule E712 #1372

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

jbampton
Copy link
Member

Comparison to true should be 'if cond is true:' or 'if cond:'.

https://www.flake8rules.com/rules/E712.html

https://peps.python.org/pep-0008/#programming-recommendations

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

Standardized the Python code for best practice.

How was this patch tested?

Ran pre-commit run --all-files

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the documentation.

@jiayuasu jiayuasu merged commit 7c53678 into apache:master Apr 26, 2024
28 checks passed
@jbampton jbampton deleted the python-linting-enable-rule-E712 branch April 26, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants