How to use the pep8.Checker.__init__ 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 reingart / rad2py / ide2py / checker.py View on Github external
def __init__(self, filename, lines=None):
        self.errors = []
        pep8style = pep8.StyleGuide(parse_argv=False, config_file=False)
        options = pep8style.options
        options.prog = os.path.basename(filename)
        options.exclude = []
        options.filename = filename
        options.select = []
        options.ignore = []
        options.verbose = 0
        #options.ignore = pep8.DEFAULT_IGNORE.split(',')
        options.counters = {'physical lines': 0, 'logical lines': 0,}
        options.messages = {}
        pep8.Checker.__init__(self, filename)
        self.check_all()
github kivy / kivy / kivy / tools / pep8checker / pep8kivy.py View on Github external
def __init__(self, filename):
        pep8.Checker.__init__(self, filename, ignore=pep8_ignores)
github kivy / kivy-designer / tools / pep8checker / pep8kivy.py View on Github external
def __init__(self, filename):
        pep8.Checker.__init__(self, filename, ignore=pep8_ignores)
github kivy / plyer / plyer / tools / pep8checker / pep8kivy.py View on Github external
def __init__(self, filename):
        pep8.Checker.__init__(self, filename, ignore=pep8_ignores)
github pyKy / kivy-doc-ja / kivy / tools / pep8checker / pep8kivy.py View on Github external
def __init__(self, filename):
        pep8.Checker.__init__(self, filename, ignore=pep8_ignores)