From 689562f1e8a03b0930b4beb1d8d5c35b75d08f65 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Mon, 6 Jun 2016 19:42:12 -0500 Subject: [PATCH] Allow reporting on files passed via stdin --- flake8/checker.py | 2 +- flake8/style_guide.py | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/flake8/checker.py b/flake8/checker.py index 75c98c1..8b1a8ec 100644 --- a/flake8/checker.py +++ b/flake8/checker.py @@ -217,7 +217,7 @@ class Manager(object): for argument in paths for filename in utils.filenames_from(argument, self.is_path_excluded) - if utils.fnmatch(filename, filename_patterns) + if utils.fnmatch(filename, filename_patterns) or filename == '-' ] def report(self): diff --git a/flake8/style_guide.py b/flake8/style_guide.py index 386edb1..57d86b2 100644 --- a/flake8/style_guide.py +++ b/flake8/style_guide.py @@ -256,14 +256,3 @@ class StyleGuide(object): Dictionary mapping filenames to sets of line number ranges. """ self._parsed_diff = diffinfo - -# Should separate style guide logic from code that runs checks -# StyleGuide should manage select/ignore logic as well as include/exclude -# logic. See also https://github.com/PyCQA/pep8/pull/433 - -# StyleGuide shoud dispatch check execution in a way that can use -# multiprocessing but also retry in serial. See also: -# https://gitlab.com/pycqa/flake8/issues/74 - -# StyleGuide should interface with Reporter and aggregate errors/notify -# listeners