-
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove __implements__ attributes for pylint checker classes
- Loading branch information
Showing
19 changed files
with
28 additions
and
78 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Copyright (c) 2021 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2021,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
|
||
from .utils import is_api_function | ||
|
||
|
@@ -15,8 +15,6 @@ class APIDistinctChecker(checkers.BaseChecker): | |
current_api_method = None | ||
distinct_found = False | ||
|
||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "api-distinct-checker" | ||
|
||
msgs = { | ||
|
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,14 +1,12 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class BulkCreateChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "bulk-create-checker" | ||
|
||
msgs = { | ||
|
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,19 +1,14 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
import tokenize | ||
|
||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class DocstringChecker(checkers.BaseTokenChecker): | ||
__implements__ = ( | ||
interfaces.ITokenChecker, | ||
interfaces.IAstroidChecker, | ||
) | ||
|
||
name = "docstring-checker" | ||
|
||
msgs = { | ||
|
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,15 +1,13 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
import astroid | ||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class DunderClassAttributeChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "dunder-class-attribute-checker" | ||
|
||
msgs = { | ||
|
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,17 +1,15 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
import os | ||
|
||
import astroid | ||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class EmptyModuleChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "empty-module-checker" | ||
|
||
msgs = { | ||
|
@@ -30,8 +28,6 @@ def visit_module(self, node): | |
|
||
|
||
class ModuleInDirectoryWithoutInitChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "dir-without-init-checker" | ||
|
||
msgs = { | ||
|
@@ -86,8 +82,6 @@ def close(self): | |
|
||
|
||
class EmptyClassChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "empty-class-checker" | ||
|
||
msgs = { | ||
|
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,14 +1,12 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class ListComprehensionChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "list-comprehension-checker" | ||
|
||
msgs = { | ||
|
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,9 +1,9 @@ | ||
# Copyright (c) 2019-2021 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2019-2021,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
import astroid | ||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
|
||
from .utils import is_api_function | ||
|
||
|
@@ -22,8 +22,6 @@ class MissingPermissionsChecker(checkers.BaseChecker): | |
] | ||
inside_views_module = False | ||
|
||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "mising-permissions-checker" | ||
|
||
msgs = { | ||
|
@@ -96,8 +94,6 @@ class MissingAPIPermissionsChecker(checkers.BaseChecker): | |
Will inspect API functions for the presence of permissions decorator! | ||
""" | ||
|
||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "mising-api-permissions-checker" | ||
|
||
msgs = { | ||
|
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,15 +1,13 @@ | ||
# Copyright (c) 2019 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2019,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
import astroid | ||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class NestedDefinitionChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "nested-definition-checker" | ||
|
||
msgs = { | ||
|
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,14 +1,12 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class ObjectsUpdateChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "objects-update-checker" | ||
|
||
msgs = { | ||
|
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,15 +1,13 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
import astroid | ||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class RawSQLChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "raw-sql-checker" | ||
|
||
msgs = { | ||
|
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,15 +1,13 @@ | ||
# Copyright (c) 2018 Alexander Todorov <[email protected]> | ||
# Copyright (c) 2018,2023 Alexander Todorov <[email protected]> | ||
|
||
# Licensed under the GPL 2.0: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | ||
|
||
import astroid | ||
from pylint import checkers, interfaces | ||
from pylint import checkers | ||
from pylint.checkers import utils | ||
|
||
|
||
class TagsChecker(checkers.BaseChecker): | ||
__implements__ = (interfaces.IAstroidChecker,) | ||
|
||
name = "tags-checker" | ||
|
||
msgs = { | ||
|
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