Squelch pep8 and pylint output unless they fail
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import json
|
||||
import logging
|
||||
import random
|
||||
|
||||
from xmodule.mako_module import MakoModuleDescriptor
|
||||
from xmodule.x_module import XModule
|
||||
from xmodule.xml_module import XmlDescriptor
|
||||
from xmodule.modulestore import Location
|
||||
from xmodule.seq_module import SequenceDescriptor
|
||||
|
||||
from pkg_resources import resource_string
|
||||
from xblock.core import Scope, Integer
|
||||
|
||||
log = logging.getLogger('mitx.' + __name__)
|
||||
|
||||
@@ -99,6 +95,7 @@ class RandomizeDescriptor(SequenceDescriptor):
|
||||
stores_state = True
|
||||
|
||||
def definition_to_xml(self, resource_fs):
|
||||
|
||||
xml_object = etree.Element('randomize')
|
||||
for child in self.get_children():
|
||||
xml_object.append(
|
||||
|
||||
@@ -39,8 +39,8 @@ pip install -q -r pre-requirements.txt
|
||||
yes w | pip install -q -r test-requirements.txt -r requirements.txt
|
||||
|
||||
rake clobber
|
||||
rake pep8
|
||||
rake pylint
|
||||
rake pep8 > pep8.log | cat pep8.log
|
||||
rake pylint > pylint.log | cat pylint.log
|
||||
|
||||
TESTS_FAILED=0
|
||||
rake test_cms[false] || TESTS_FAILED=1
|
||||
|
||||
Reference in New Issue
Block a user