diff --git a/.pylintrc b/.pylintrc index 3d10be1..137041d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -4,8 +4,3 @@ disable= C0114, # missing-module-docstring C0115, # missing-class-docstring C0116, # missing-function-docstring - R0903, # too-few-public-methods - R0904, # too-many-public-methods - R0913, # too-many-arguments - R0914, # too-many-locals - R0915, # too-many-statements diff --git a/xarg/colorful.py b/xarg/colorful.py index 40fa431..a586088 100644 --- a/xarg/colorful.py +++ b/xarg/colorful.py @@ -10,7 +10,7 @@ from colorama.ansi import code_to_chars -class AnsiXStyle(AnsiStyle): +class AnsiXStyle(AnsiStyle): # pylint: disable=too-few-public-methods ITALIC = 3 UNDERLINE = 4 SLOWBLINK = 5 @@ -42,7 +42,7 @@ class AnsiXStyle(AnsiStyle): } -class color(str): +class color(str): # pylint: disable=too-many-public-methods '''Colorful terminal text Reference: https://en.wikipedia.org/wiki/ANSI_escape_code diff --git a/xarg/parser.py b/xarg/parser.py index add85f5..a37b0b8 100644 --- a/xarg/parser.py +++ b/xarg/parser.py @@ -77,7 +77,7 @@ class argp(ArgumentParser): '''Simple command-line tool based on argparse. ''' - def __init__(self, + def __init__(self, # pylint: disable=too-many-arguments argv: Optional[Sequence[str]] = None, prog: Optional[str] = None, usage: Optional[str] = None, diff --git a/xarg/scanner.py b/xarg/scanner.py index aaccd8c..c3ee02c 100644 --- a/xarg/scanner.py +++ b/xarg/scanner.py @@ -29,7 +29,7 @@ class scanner: '''scan objects ''' - class object: + class object: # pylint: disable=too-many-public-methods def __init__(self, path: str): assert isinstance(path, str) @@ -177,7 +177,7 @@ def add(self, obj: object): self.__objregs.add(obj) @classmethod - def load(cls, + def load(cls, # pylint: disable=R0913,R0914,R0915 paths: Sequence[str], exclude: Optional[Sequence[str]] = None, linkdir: bool = True, @@ -207,7 +207,7 @@ def path_filter() -> Set[str]: return filter_paths - class task_stat: + class task_stat: # pylint: disable=too-few-public-methods def __init__(self): self.exit = False