Skip to content

Commit

Permalink
Pylint checkers: remove __implements__
Browse files Browse the repository at this point in the history
Was removed in pylint-dev/pylint#8404.
  • Loading branch information
karlch committed Nov 27, 2023
1 parent 52282f4 commit 8306ab9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions scripts/pylint_checkers/check_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

import astroid

from pylint.interfaces import IAstroidChecker
from pylint.checkers import BaseChecker


class CountComparedWithoutNone(BaseChecker):
"""Checker to ensure count is compared to None."""

__implements__ = IAstroidChecker

name = "count-compared-directly"

# here we define our messages
Expand Down Expand Up @@ -43,8 +40,6 @@ def _check_compare_count(self, node):
class CountAssignedToZero(BaseChecker):
"""Checker to inform when default assigning count to zero."""

__implements__ = IAstroidChecker

name = "count-default-zero"

# here we define our messages
Expand Down
3 changes: 0 additions & 3 deletions scripts/pylint_checkers/check_docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@

import astroid

from pylint.interfaces import IAstroidChecker
from pylint.checkers import BaseChecker


class CommandMissingDocumentation(BaseChecker):
"""Checker to ensure command docstrings include all information for docs."""

__implements__ = IAstroidChecker

name = "command-docstring"

name_ambiguous = "ambiguous-register"
Expand Down
3 changes: 0 additions & 3 deletions scripts/pylint_checkers/check_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@

"""Checker to ensure each python file includes a modeline and no copyright notice."""

from pylint.interfaces import IRawChecker
from pylint.checkers import BaseChecker


class FileHeaderChecker(BaseChecker):
"""Checker to ensure each python file includes a modeline and copyright notice."""

__implements__ = IRawChecker

name = "file-header"
name_modeline_missing = "modeline-missing"
name_copyright_included = "copyright-included"
Expand Down

0 comments on commit 8306ab9

Please sign in to comment.