-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Ruff: Add a lot of Bugbear rules #12077
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
Conversation
DryRun Security SummaryThe pull request updates the Ruff linter configuration by expanding the selected linting rules to enhance code quality and potentially improve security through broader code pattern analysis. Expand for full summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just highlighting the added rules:
- B011 - use of assert False
- B012 - break/continue/return in finally
- B013 - single-element tuples in exception handlers
- B014 - redundant exceptions in catch
- B015 - useless comparisons
- B016 - raising literals
- B019 - cached instance methods
- B020 - loop iterable overrides
- B021 - fstring docstrings
- B022 - contextlib.suppress without args
- B023 - function defs with loop var
- B025 - redundant try blocks
- B029 - except with empty tuples
- B030 - catch non-exception classes
- B032 - unintentional type annotations
- B034 - re.sub positional args
- B035 - static key dict comprehensions
- B039 - mutable contextvar defaults
- B901 - return in generator
- B911 - itertools.batched wihtout explicit param
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
No description provided.