summaryrefslogtreecommitdiff
path: root/xnt
diff options
context:
space:
mode:
authorkennyballou <kballou@onyx.boisestate.edu>2013-03-09 00:16:06 -0700
committerkennyballou <kballou@onyx.boisestate.edu>2013-03-09 00:16:06 -0700
commitaeb0672db3f2a4ddb4812344398831180a723d0c (patch)
tree9e93a7e1626a4e1c029ca327c6a50fabde61c76a /xnt
parent4378349f77f3dfd2c94244c6a2f427babd17c9d4 (diff)
downloadxnt-aeb0672db3f2a4ddb4812344398831180a723d0c.tar.gz
xnt-aeb0672db3f2a4ddb4812344398831180a723d0c.tar.xz
Update pylint.conf
Update lint rules Update explicit ignores in favor of new lint rules
Diffstat (limited to 'xnt')
-rw-r--r--xnt/basecommand.py2
-rw-r--r--xnt/commands/help.py2
-rw-r--r--xnt/commands/listtargets.py2
-rw-r--r--xnt/commands/version.py2
-rw-r--r--xnt/tasks.py6
-rw-r--r--xnt/tests/compilercollectiontests.py13
-rw-r--r--xnt/tests/taskcompressiontests.py6
-rw-r--r--xnt/tests/taskcopytests.py6
-rw-r--r--xnt/tests/taskmisctests.py6
-rw-r--r--xnt/tests/taskmkdirtests.py6
-rw-r--r--xnt/tests/taskmovetests.py6
-rw-r--r--xnt/tests/taskremovetests.py6
12 files changed, 31 insertions, 32 deletions
diff --git a/xnt/basecommand.py b/xnt/basecommand.py
index bbbdac9..6433918 100644
--- a/xnt/basecommand.py
+++ b/xnt/basecommand.py
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-class Command(object): #pylint: disable-msg=R0903
+class Command(object):
"""Base Command Class Definition"""
name = None
usage = None
diff --git a/xnt/commands/help.py b/xnt/commands/help.py
index e72b13e..79584be 100644
--- a/xnt/commands/help.py
+++ b/xnt/commands/help.py
@@ -20,7 +20,7 @@
from xnt.basecommand import Command
from xnt.status_codes import SUCCESS
-class HelpCommand(Command): #pylint: disable-msg=R0903
+class HelpCommand(Command):
"""Help Command"""
name = 'help'
usage = """"""
diff --git a/xnt/commands/listtargets.py b/xnt/commands/listtargets.py
index 01f05de..2885905 100644
--- a/xnt/commands/listtargets.py
+++ b/xnt/commands/listtargets.py
@@ -23,7 +23,7 @@ import logging
LOGGER = logging.getLogger(__name__)
-class ListTargetsCommand(Command): #pylint: disable-msg=R0903
+class ListTargetsCommand(Command):
"""List Targets Command"""
name = 'list-targets'
usage = """"""
diff --git a/xnt/commands/version.py b/xnt/commands/version.py
index 11a1879..9c2e302 100644
--- a/xnt/commands/version.py
+++ b/xnt/commands/version.py
@@ -20,7 +20,7 @@
from xnt.basecommand import Command
from xnt.status_codes import SUCCESS
-class VersionCommand(Command): #pylint: disable-msg=R0903
+class VersionCommand(Command):
"""Version Command"""
name = 'version'
usage = """"""
diff --git a/xnt/tasks.py b/xnt/tasks.py
index 1fdc0da..7a3e79d 100644
--- a/xnt/tasks.py
+++ b/xnt/tasks.py
@@ -39,7 +39,7 @@ def expandpath(path):
"""
return glob.iglob(path)
-def cp(src="", dst="", files=None): #pylint: disable-msg=C0103
+def cp(src="", dst="", files=None):
"""Copy `src` to `dst` or copy `files` to `dst`
Copy a file or folder to a different file/folder
@@ -62,7 +62,7 @@ def cp(src="", dst="", files=None): #pylint: disable-msg=C0103
for file_to_copy in files:
copy(file_to_copy, dst)
-def mv(src, dst): #pylint: disable-msg=C0103
+def mv(src, dst):
"""Move file or folder to destination"""
LOGGER.info("Moving %s to %s", src, dst)
shutil.move(src, dst)
@@ -79,7 +79,7 @@ def mkdir(directory, mode=0o777):
except:
raise
-def rm(*fileset): #pylint: disable-msg=C0103
+def rm(*fileset):
"""Remove a set of files"""
try:
for glob_set in fileset:
diff --git a/xnt/tests/compilercollectiontests.py b/xnt/tests/compilercollectiontests.py
index 50b8343..61f8bf3 100644
--- a/xnt/tests/compilercollectiontests.py
+++ b/xnt/tests/compilercollectiontests.py
@@ -42,12 +42,11 @@ def which(program):
return None
-#pylint: disable-msg=R0904
#pylint: disable-msg=C0103
@unittest.skipUnless(which("gcc"), "gcc is not in your path")
class GccTests(unittest.TestCase):
"""Test GCC"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Case Setup"""
os.mkdir("temp")
with open("temp/hello.c", "w") as test_code:
@@ -59,7 +58,7 @@ class GccTests(unittest.TestCase):
}
""")
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Case Teardown"""
shutil.rmtree("temp")
@@ -79,7 +78,7 @@ class GccTests(unittest.TestCase):
@unittest.skipUnless(which("g++"), "g++ is not in your path")
class GppTests(unittest.TestCase):
"""Test G++ (C++ GCC)"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Case Setup"""
os.mkdir("temp")
with open("temp/hello.cpp", "w") as test_code:
@@ -91,7 +90,7 @@ class GppTests(unittest.TestCase):
}
""")
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Case Teardown"""
shutil.rmtree("temp")
@@ -111,7 +110,7 @@ class GppTests(unittest.TestCase):
@unittest.skipUnless(which("javac"), "javac is not in your path")
class JavacTests(unittest.TestCase):
"""Test Javac"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Case Setup"""
os.mkdir("temp")
with open("temp/hello.java", "w") as test_code:
@@ -123,7 +122,7 @@ class JavacTests(unittest.TestCase):
}
""")
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Case Teardown"""
shutil.rmtree("temp")
diff --git a/xnt/tests/taskcompressiontests.py b/xnt/tests/taskcompressiontests.py
index 574298b..f722390 100644
--- a/xnt/tests/taskcompressiontests.py
+++ b/xnt/tests/taskcompressiontests.py
@@ -23,13 +23,13 @@ import xnt.tests
import unittest
#pylint: disable-msg=C0103
-class TaskCompressionTests(unittest.TestCase): #pylint: disable-msg=R0904
+class TaskCompressionTests(unittest.TestCase):
"""Test Cases for Compression"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Case Setup"""
xnt.tests.set_up()
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Case Teardown"""
xnt.tests.tear_down()
diff --git a/xnt/tests/taskcopytests.py b/xnt/tests/taskcopytests.py
index 5c8949e..892f4ff 100644
--- a/xnt/tests/taskcopytests.py
+++ b/xnt/tests/taskcopytests.py
@@ -23,13 +23,13 @@ import xnt.tests
import unittest
#pylint: disable-msg=C0103
-class TaskCopyTests(unittest.TestCase): #pylint: disable-msg=R0904
+class TaskCopyTests(unittest.TestCase):
"""Test Case for Copy Tasks Method"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Setup"""
xnt.tests.set_up()
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Teardown"""
xnt.tests.tear_down()
diff --git a/xnt/tests/taskmisctests.py b/xnt/tests/taskmisctests.py
index 0fa5e43..54cd8e5 100644
--- a/xnt/tests/taskmisctests.py
+++ b/xnt/tests/taskmisctests.py
@@ -23,13 +23,13 @@ import xnt.tests
import unittest
#pylint: disable-msg=C0103
-class TaskMiscTests(unittest.TestCase): #pylint: disable-msg=R0904
+class TaskMiscTests(unittest.TestCase):
"""Test Misc Tasks"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Case Setup"""
xnt.tests.set_up()
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Case Teardown"""
xnt.tests.tear_down()
diff --git a/xnt/tests/taskmkdirtests.py b/xnt/tests/taskmkdirtests.py
index 2b55b06..e210885 100644
--- a/xnt/tests/taskmkdirtests.py
+++ b/xnt/tests/taskmkdirtests.py
@@ -23,13 +23,13 @@ import xnt.tests
import unittest
#pylint: disable-msg=C0103
-class TaskMkdirTests(unittest.TestCase): #pylint: disable-msg=R0904
+class TaskMkdirTests(unittest.TestCase):
"""Test Cases for Mkdir"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Case Setup"""
xnt.tests.set_up()
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Case Teardown"""
xnt.tests.tear_down()
diff --git a/xnt/tests/taskmovetests.py b/xnt/tests/taskmovetests.py
index 72670cb..80ddc65 100644
--- a/xnt/tests/taskmovetests.py
+++ b/xnt/tests/taskmovetests.py
@@ -23,13 +23,13 @@ import xnt.tests
import unittest
#pylint: disable-msg=C0103
-class TaskMoveTests(unittest.TestCase): #pylint: disable-msg=R0904
+class TaskMoveTests(unittest.TestCase):
"""Test cases for move"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test Case Setup"""
xnt.tests.set_up()
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test Case Teardown"""
xnt.tests.tear_down()
diff --git a/xnt/tests/taskremovetests.py b/xnt/tests/taskremovetests.py
index f94103c..d42407f 100644
--- a/xnt/tests/taskremovetests.py
+++ b/xnt/tests/taskremovetests.py
@@ -23,13 +23,13 @@ import xnt.tests
import unittest
#pylint: disable-msg=C0103
-class TaskRemoveTests(unittest.TestCase): #pylint: disable-msg=R0904
+class TaskRemoveTests(unittest.TestCase):
"""Test Case for Remove"""
- def setUp(self): #pylint: disable-msg=R0201
+ def setUp(self):
"""Test case Setup"""
xnt.tests.set_up()
- def tearDown(self): #pylint: disable-msg=R0201
+ def tearDown(self):
"""Test case Teardown"""
xnt.tests.tear_down()