How to use the pep8.ignore_code function in pep8

To help you get started, we’ve selected a few pep8 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KDE / kate / addons / kate / pate / src / plugins / python_utils / python_checkers / pep8_checker.py View on Github external
def report_error(self, line_number, offset, text, check):
            """
            Store the error
            """
            self.file_errors += 1
            error_code = text[0:4]
            if not pep8.ignore_code(error_code):
                self.error_list.append([line_number, offset, error_code, text])
github goinnn / Kate-plugins / kate_plugins / pyte_plugins / check_plugins / pep8_plugins.py View on Github external
def report_error(self, line_number, offset, text, check):
            """
            Store the error
            """
            self.file_errors += 1
            error_code = text[0:4]
            if not pep8.ignore_code(error_code):
                self.error_list.append([line_number, offset, error_code, text])
github KDE / kate / kate / plugins / pate / src / plugins / python_utils / python_checkers / pep8_checker.py View on Github external
def report_error(self, line_number, offset, text, check):
            """
            Store the error
            """
            self.file_errors += 1
            error_code = text[0:4]
            if not pep8.ignore_code(error_code):
                self.error_list.append([line_number, offset, error_code, text])
github douglas / sublimetext2_configs / sublimelint / modules / python.py View on Github external
def report_error(self, line_number, offset, text, check):
            code = text[:4]
            msg = text[5:]
            if pep8.ignore_code(code):
                return
            if code.startswith('E'):
                messages.append(Pep8Error(filename, Dict2Obj(lineno=line_number, col_offset=offset), code, msg))
            else:
                messages.append(Pep8Warning(filename, Dict2Obj(lineno=line_number, col_offset=offset), code, msg))
        pep8.Checker.report_error = report_error