mirror of https://github.com/astral-sh/ruff
Update README.md
This commit is contained in:
parent
4cf2682cda
commit
04ade6a2f3
|
|
@ -286,6 +286,7 @@ The 🛠 emoji indicates that a rule is automatically fixable by the `--fix` com
|
||||||
| T203 | PPrintFound | `pprint` found | | 🛠 |
|
| T203 | PPrintFound | `pprint` found | | 🛠 |
|
||||||
| U001 | UselessMetaclassType | `__metaclass__ = type` is implied | | 🛠 |
|
| U001 | UselessMetaclassType | `__metaclass__ = type` is implied | | 🛠 |
|
||||||
| U002 | UnnecessaryAbspath | `abspath(__file__)` is unnecessary in Python 3.9 and later | | 🛠 |
|
| U002 | UnnecessaryAbspath | `abspath(__file__)` is unnecessary in Python 3.9 and later | | 🛠 |
|
||||||
|
| U003 | TypeOfPrimitive | Use `str` instead of `type(...)` | | 🛠 |
|
||||||
| R001 | UselessObjectInheritance | Class `...` inherits from object | | 🛠 |
|
| R001 | UselessObjectInheritance | Class `...` inherits from object | | 🛠 |
|
||||||
| R002 | NoAssertEquals | `assertEquals` is deprecated, use `assertEqual` instead | | 🛠 |
|
| R002 | NoAssertEquals | `assertEquals` is deprecated, use `assertEqual` instead | | 🛠 |
|
||||||
| M001 | UnusedNOQA | Unused `noqa` directive | | 🛠 |
|
| M001 | UnusedNOQA | Unused `noqa` directive | | 🛠 |
|
||||||
|
|
|
||||||
|
|
@ -419,7 +419,7 @@ impl CheckCode {
|
||||||
// pyupgrade
|
// pyupgrade
|
||||||
CheckCode::U001 => CheckKind::UselessMetaclassType,
|
CheckCode::U001 => CheckKind::UselessMetaclassType,
|
||||||
CheckCode::U002 => CheckKind::UnnecessaryAbspath,
|
CheckCode::U002 => CheckKind::UnnecessaryAbspath,
|
||||||
CheckCode::U003 => CheckKind::UnnecessaryAbspath,
|
CheckCode::U003 => CheckKind::TypeOfPrimitive(Primitive::Str),
|
||||||
// Refactor
|
// Refactor
|
||||||
CheckCode::R001 => CheckKind::UselessObjectInheritance("...".to_string()),
|
CheckCode::R001 => CheckKind::UselessObjectInheritance("...".to_string()),
|
||||||
CheckCode::R002 => CheckKind::NoAssertEquals,
|
CheckCode::R002 => CheckKind::NoAssertEquals,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue