def check(self, code, filename):

        if self.checker is None:
            self.checker = self.module.PEP257Checker()

        options = {
            'ignore': [],
            'add-ignore': []
        }
        type_map = {
            'ignore': [],
            'add-ignore': []
        }

        self.build_options(options, type_map)

        if persist.debug_mode():
            persist.printf('{} options: {}'.format(self.name, options))

        ignore = options['ignore']
        add_ignore = options['add-ignore']
        errors = []

        for error in self.checker.check_source(code, os.path.basename(filename)):
            code = getattr(error, 'code', None)

            if code is not None and code not in ignore and code not in add_ignore:
                errors.append(str(error))

        return '\n'.join(errors)
Return a Zone instance.
dataset/ETHPy150Open SublimeLinter/SublimeLinter-pep257/linter.py/PEP257.check--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/dns/drivers/pointdns.py/PointDNSDriver.get_zone