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

Python linting: Ignore ruff rule PLC1901 #7660

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Mar 15, 2023

s == '' can be simplified to not s as an empty string is falsey

% ruff rule PLC1901

compare-to-empty-string (PLC1901)

Derived from the Pylint linter.

Message formats:

  • {} can be simplified to {} as an empty string is falsey

% `ruff rule PLC1901`
# compare-to-empty-string (PLC1901)

Derived from the **Pylint** linter.

Message formats:
* `{}` can be simplified to `{}` as an empty string is falsey
@cclauss cclauss requested a review from hornc March 15, 2023 06:22
@cclauss cclauss requested a review from scottbarnes March 15, 2023 06:22
Copy link
Collaborator

@hornc hornc left a comment

Choose a reason for hiding this comment

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

Thank you @cclauss, Looks good to me!

@cclauss cclauss merged commit 7619cf8 into master Mar 15, 2023
@cclauss cclauss deleted the Ignore-ruff-rule-PLC1901 branch March 15, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants