-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[multiple-statements] Make pylint compatible with black's 2024 style (#…
…9697) (#9698) * Add more test cases to cover pass / ... * Define the confidence as HIGH * Exclude the class with Ellipsis from the check Closes #9398 (cherry picked from commit afd5edf) Co-authored-by: Pierre Sassoulas <[email protected]>
- Loading branch information
1 parent
7e5e4f9
commit 192727b
Showing
6 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Classes with only an Ellipsis (``...``) in their body do not trigger 'multiple-statements' | ||
anymore if they are inlined (in accordance with black's 2024 style). | ||
|
||
Closes #9398 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
multiple-statements:7:9:7:13::More than one statement on a single line:UNDEFINED | ||
multiple-statements:9:9:9:13::More than one statement on a single line:UNDEFINED | ||
multiple-statements:13:26:13:30:MyError:More than one statement on a single line:UNDEFINED | ||
multiple-statements:15:26:15:31:MyError:More than one statement on a single line:UNDEFINED | ||
multiple-statements:17:26:17:31:MyError:More than one statement on a single line:UNDEFINED | ||
multiple-statements:7:9:7:38::More than one statement on a single line:HIGH | ||
multiple-statements:8:9:8:13::More than one statement on a single line:HIGH | ||
multiple-statements:9:9:9:12::More than one statement on a single line:HIGH | ||
multiple-statements:11:9:11:38::More than one statement on a single line:HIGH | ||
multiple-statements:15:9:15:13::More than one statement on a single line:HIGH | ||
multiple-statements:19:9:19:12::More than one statement on a single line:HIGH | ||
multiple-statements:26:30:26:59:MyException:More than one statement on a single line:HIGH | ||
multiple-statements:27:26:27:30:MyError:More than one statement on a single line:HIGH | ||
multiple-statements:30:26:30:31:MyError:More than one statement on a single line:HIGH | ||
multiple-statements:32:26:32:31:MyError:More than one statement on a single line:HIGH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
multiple-statements:9:9:9:13::More than one statement on a single line:UNDEFINED | ||
multiple-statements:17:26:17:31:MyError:More than one statement on a single line:UNDEFINED | ||
multiple-statements:11:9:11:38::More than one statement on a single line:HIGH | ||
multiple-statements:15:9:15:13::More than one statement on a single line:HIGH | ||
multiple-statements:19:9:19:12::More than one statement on a single line:HIGH | ||
multiple-statements:30:26:30:31:MyError:More than one statement on a single line:HIGH |