diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-12-27 00:04:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 00:04:56 +0100 |
commit | dbb12524d75b7bb79215e9c3b6c20d15e9a7a7d6 (patch) | |
tree | 2481d32fe51765b1bbd6f126e38493159a234b5b /pylint/extensions | |
parent | cf5ea8a32bcdac0bd889f973272c59599b40af95 (diff) | |
download | pylint-git-dbb12524d75b7bb79215e9c3b6c20d15e9a7a7d6.tar.gz |
[pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965)
Diffstat (limited to 'pylint/extensions')
-rw-r--r-- | pylint/extensions/bad_builtin.py | 1 | ||||
-rw-r--r-- | pylint/extensions/code_style.py | 1 | ||||
-rw-r--r-- | pylint/extensions/consider_ternary_expression.py | 3 | ||||
-rw-r--r-- | pylint/extensions/empty_comment.py | 3 | ||||
-rw-r--r-- | pylint/extensions/eq_without_hash.py | 1 | ||||
-rw-r--r-- | pylint/extensions/for_any_all.py | 1 | ||||
-rw-r--r-- | pylint/extensions/no_self_use.py | 1 | ||||
-rw-r--r-- | pylint/extensions/private_import.py | 1 | ||||
-rw-r--r-- | pylint/extensions/redefined_loop_name.py | 1 | ||||
-rw-r--r-- | pylint/extensions/set_membership.py | 1 | ||||
-rw-r--r-- | pylint/extensions/while_used.py | 1 |
11 files changed, 2 insertions, 13 deletions
diff --git a/pylint/extensions/bad_builtin.py b/pylint/extensions/bad_builtin.py index dd6ab3841..904b2a394 100644 --- a/pylint/extensions/bad_builtin.py +++ b/pylint/extensions/bad_builtin.py @@ -23,7 +23,6 @@ BUILTIN_HINTS = {"map": LIST_COMP_MSG, "filter": LIST_COMP_MSG} class BadBuiltinChecker(BaseChecker): - name = "deprecated_builtins" msgs = { "W0141": ( diff --git a/pylint/extensions/code_style.py b/pylint/extensions/code_style.py index 24eb7f667..262a7f0c4 100644 --- a/pylint/extensions/code_style.py +++ b/pylint/extensions/code_style.py @@ -225,7 +225,6 @@ class CodeStyleChecker(BaseChecker): if CodeStyleChecker._check_prev_sibling_to_if_stmt( prev_sibling, node_name.name ): - # Check if match statement would be a better fit. # I.e. multiple ifs that test the same name. if CodeStyleChecker._check_ignore_assignment_expr_suggestion( diff --git a/pylint/extensions/consider_ternary_expression.py b/pylint/extensions/consider_ternary_expression.py index c549b550f..0e9444662 100644 --- a/pylint/extensions/consider_ternary_expression.py +++ b/pylint/extensions/consider_ternary_expression.py @@ -17,7 +17,6 @@ if TYPE_CHECKING: class ConsiderTernaryExpressionChecker(BaseChecker): - name = "consider_ternary_expression" msgs = { "W0160": ( @@ -41,7 +40,7 @@ class ConsiderTernaryExpressionChecker(BaseChecker): if not isinstance(bst, nodes.Assign) or not isinstance(ost, nodes.Assign): return - for (bname, oname) in zip(bst.targets, ost.targets): + for bname, oname in zip(bst.targets, ost.targets): if not isinstance(bname, nodes.AssignName) or not isinstance( oname, nodes.AssignName ): diff --git a/pylint/extensions/empty_comment.py b/pylint/extensions/empty_comment.py index 8685cb7e9..e8a914708 100644 --- a/pylint/extensions/empty_comment.py +++ b/pylint/extensions/empty_comment.py @@ -40,7 +40,6 @@ def comment_part_of_string(line: bytes, comment_idx: int) -> bool: class CommentChecker(BaseRawFileChecker): - name = "empty-comment" msgs = { "R2044": ( @@ -55,7 +54,7 @@ class CommentChecker(BaseRawFileChecker): def process_module(self, node: nodes.Module) -> None: with node.stream() as stream: - for (line_num, line) in enumerate(stream): + for line_num, line in enumerate(stream): line = line.rstrip() if line.endswith(b"#"): if not is_line_commented(line[:-1]): diff --git a/pylint/extensions/eq_without_hash.py b/pylint/extensions/eq_without_hash.py index bce2087bc..b0d0f01bd 100644 --- a/pylint/extensions/eq_without_hash.py +++ b/pylint/extensions/eq_without_hash.py @@ -17,7 +17,6 @@ from pylint.lint import PyLinter class EqWithoutHash(checkers.BaseChecker): - name = "eq-without-hash" msgs = { diff --git a/pylint/extensions/for_any_all.py b/pylint/extensions/for_any_all.py index 257b5d37f..bc7dd9c48 100644 --- a/pylint/extensions/for_any_all.py +++ b/pylint/extensions/for_any_all.py @@ -23,7 +23,6 @@ if TYPE_CHECKING: class ConsiderUsingAnyOrAllChecker(BaseChecker): - name = "consider-using-any-or-all" msgs = { "C0501": ( diff --git a/pylint/extensions/no_self_use.py b/pylint/extensions/no_self_use.py index 4a20873c8..0fd38877f 100644 --- a/pylint/extensions/no_self_use.py +++ b/pylint/extensions/no_self_use.py @@ -23,7 +23,6 @@ if TYPE_CHECKING: class NoSelfUseChecker(BaseChecker): - name = "no_self_use" msgs = { "R6301": ( diff --git a/pylint/extensions/private_import.py b/pylint/extensions/private_import.py index 61d37af37..fb4458e54 100644 --- a/pylint/extensions/private_import.py +++ b/pylint/extensions/private_import.py @@ -19,7 +19,6 @@ if TYPE_CHECKING: class PrivateImportChecker(BaseChecker): - name = "import-private-name" msgs = { "C2701": ( diff --git a/pylint/extensions/redefined_loop_name.py b/pylint/extensions/redefined_loop_name.py index e6308cb11..df333fab9 100644 --- a/pylint/extensions/redefined_loop_name.py +++ b/pylint/extensions/redefined_loop_name.py @@ -15,7 +15,6 @@ from pylint.lint import PyLinter class RedefinedLoopNameChecker(checkers.BaseChecker): - name = "redefined-loop-name" msgs = { diff --git a/pylint/extensions/set_membership.py b/pylint/extensions/set_membership.py index d04ba9ae7..f267e046f 100644 --- a/pylint/extensions/set_membership.py +++ b/pylint/extensions/set_membership.py @@ -16,7 +16,6 @@ if TYPE_CHECKING: class SetMembershipChecker(BaseChecker): - name = "set_membership" msgs = { "R6201": ( diff --git a/pylint/extensions/while_used.py b/pylint/extensions/while_used.py index 78f7d314a..6f9612196 100644 --- a/pylint/extensions/while_used.py +++ b/pylint/extensions/while_used.py @@ -18,7 +18,6 @@ if TYPE_CHECKING: class WhileChecker(BaseChecker): - name = "while_used" msgs = { "W0149": ( |