def setUp(self): """Setup PythonCheckStyleTask with Rage Checker""" super(TestPyStyleTask, self).setUp() PythonCheckStyleTask.clear_plugins() PythonCheckStyleTask.register_plugin(name='angry_test', subsystem=RageSubsystem) self.style_check = self._create_task() self.style_check.options.suppress = None
def setUp(self): """Setup PythonCheckStyleTask with Rage Checker""" super(TestPyStyleTask, self).setUp() PythonCheckStyleTask.clear_plugins() PythonCheckStyleTask.register_plugin(name='angry_test', subsystem=RageSubsystem) self.style_check = self._create_task() self.style_check.options.suppress = None self.no_qa_line = 'no_qa_line.py' self.create_file(self.no_qa_line, dedent_wo_first_line(""" print('This is not fine') print('This is fine') # noqa""")) self.no_qa_file = "no_qa_file.py" self.create_file(self.no_qa_file, dedent_wo_first_line(""" # checkstyle: noqa print('This is not fine') print('This is fine')"""))
def tearDown(self): super(TestPyStyleTask, self).tearDown() PythonCheckStyleTask.clear_plugins()
def setUp(self): super(PythonCheckStyleTaskTest, self).setUp() PythonCheckStyleTask.clear_plugins() PythonCheckStyleTask.register_plugin('print-statements', PrintStatementsSubsystem)
def setUp(self): super(PythonCheckStyleTaskTest, self).setUp() PythonCheckStyleTask.clear_plugins() PythonCheckStyleTask.register_plugin('variable-names', VariableNamesSubsystem)