mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Enable customization of autofixable error codes (#811)
This commit is contained in:
parent
437b6f23b9
commit
0f34cdb7a3
34 changed files with 312 additions and 228 deletions
|
@ -14,7 +14,7 @@ pub fn useless_object_inheritance(
|
|||
) {
|
||||
let scope = checker.current_scope();
|
||||
if let Some(mut check) = checks::useless_object_inheritance(name, bases, scope) {
|
||||
if checker.patch() {
|
||||
if checker.patch(check.kind.code()) {
|
||||
if let Some(fix) = pyupgrade::fixes::remove_class_def_base(
|
||||
checker.locator,
|
||||
&stmt.location,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue