예제 #1
0
    def pep257(self, settings, code=None, filename=None):
        """Run the pep257 linter
        """

        lint = AnacondaPep257
        ignore = settings.get('pep257_ignore')
        PEP257(self._merge, self.uid, self.vid, lint, ignore, code, filename)
예제 #2
0
 def run_pep257_linter(result):
     """Return pep257 lintin errors on the given code
     """
     ignore = settings.get('pep257_ignore')
     callback = partial(merge_lint_and_pep257, result)
     PEP257(callback, uid, AnacondaPep257, ignore, code, filename)