mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Stabilize some rules for v0.2.0 release (#9712)
## Summary This PR stabilizes the preview rules from: - `flake8-trio` (6 rules) - `flake8-quotes` (1 rule) - `pyupgrade` (1 rule) - `flake8-pyi` (1 rule) - `flake8-simplify` (2 rules) - `flake8-bandit` (9 rules; 14 remain in preview) - `flake8-type-checking` (1 rule) - `numpy` (1 rule) - `ruff` (4 rules, one elevated from nursery; 6 remain in preview as they were added within the last 30 days) - `flake8-logging` (4 rules) I see these are largely uncontroversial.
This commit is contained in:
parent
e0bc08a758
commit
7db3aea1c6
3 changed files with 29 additions and 501 deletions
|
@ -1454,9 +1454,6 @@ mod tests {
|
|||
use std::str::FromStr;
|
||||
|
||||
const PREVIEW_RULES: &[Rule] = &[
|
||||
Rule::AssignmentInAssert,
|
||||
Rule::DirectLoggerInstantiation,
|
||||
Rule::InvalidGetLoggerArgument,
|
||||
Rule::IsinstanceTypeNone,
|
||||
Rule::IfExprMinMax,
|
||||
Rule::ManualDictComprehension,
|
||||
|
@ -1464,7 +1461,6 @@ mod tests {
|
|||
Rule::SliceCopy,
|
||||
Rule::TooManyPublicMethods,
|
||||
Rule::TooManyPublicMethods,
|
||||
Rule::UndocumentedWarn,
|
||||
Rule::UnnecessaryEnumerate,
|
||||
Rule::MathConstant,
|
||||
Rule::PreviewTestRule,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue