def setUp(self):
    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')"""))
Setup PythonCheckStyleTask with Rage Checker
dataset/ETHPy150Open pantsbuild/pants/contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_noqa.py/TestPyStyleTask.setUp