def lint(self, targets):
LinterRunner.targets = targets<EOL>linters = self._config.get_linter_classes()<EOL>with Pool() as pool:<EOL><INDENT>out_err_none = pool.map(LinterRunner.run, linters)<EOL><DEDENT>out_err = [item for item in out_err_none if item is not None]<EOL>stdout, stderr = zip(*out_err)<EOL>return sorted(chain.from_iterable(stdout)), chain.from_iterable(stderr)<EOL>
Run linters in parallel and sort all results.

        Args:
            targets (list): List of files and folders to lint.