Skip to content

Commit

Permalink
pylint comments to allow for py2 and py3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
markmcdowall committed Aug 2, 2018
1 parent ee37c6f commit 0020ba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mg_common/tool/bam_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

# ------------------------------------------------------------------------------

class bamUtils(object): # pylint: disable=invalid-name
# Object inheritance is required for py2 compatiblity
class bamUtils(object): # pylint: disable=invalid-name, useless-object-inheritance
"""
Tool for handling bam files
"""
Expand Down
6 changes: 4 additions & 2 deletions mg_common/tool/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
from utils import logger


class cd(object): # pylint: disable=too-few-public-methods, invalid-name
# Object inheritance is required for py2 compatiblity
class cd(object): # pylint: disable=too-few-public-methods, invalid-name, useless-object-inheritance
"""
Context manager for changing the current working directory
"""
Expand All @@ -40,7 +41,8 @@ def __exit__(self, etype, value, traceback):
os.chdir(self.savedpath)


class common(object): # pylint: disable=too-few-public-methods, invalid-name
# Object inheritance is required for py2 compatiblity
class common(object): # pylint: disable=too-few-public-methods, invalid-name, useless-object-inheritance
"""
Common functions that can be used generically across tools and pipelines
"""
Expand Down

0 comments on commit 0020ba8

Please sign in to comment.