Skip to content

Commit

Permalink
more pylint removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Powers committed Jun 21, 2020
1 parent 5add8a1 commit 0e7efab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion whatsthis/discovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from whatsthis.discovery import probes


class Discovery: # pylint: disable=R0903
class Discovery:
"""Do the discovering."""

def __init__(self, data_dir=None):
Expand Down
2 changes: 1 addition & 1 deletion whatsthis/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def copy(src, dst):
return True


def dd(src, dst): # pylint: disable=invalid-name
def dd(src, dst):
"""Use dd to copy a file.
There are times where dd fails due to a list of reasons. This
Expand Down
4 changes: 2 additions & 2 deletions whatsthis/subp.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def execute(args, data=None, env=None, shell=False):
return Result(out, err, process.returncode)


class Result(str): # pylint: disable=too-many-ancestors
class Result(str):
"""Result Class."""

def __init__(self, stdout, stderr="", return_code=-1):
Expand Down Expand Up @@ -60,6 +60,6 @@ def failed(self):
return not self.ok

@property
def ok(self): # pylint: disable=invalid-name
def ok(self):
"""Return boolean from return_code."""
return not bool(self.return_code)

0 comments on commit 0e7efab

Please sign in to comment.