diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-06 19:42:12 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-06 19:42:12 -0500 |
| commit | 689562f1e8a03b0930b4beb1d8d5c35b75d08f65 (patch) | |
| tree | d9d356048fbfb05beb47e5800123311f51581aaf | |
| parent | 59c3ba75e6ee53c07ac07adc46b715701deb3fec (diff) | |
| download | flake8-689562f1e8a03b0930b4beb1d8d5c35b75d08f65.tar.gz | |
Allow reporting on files passed via stdin
| -rw-r--r-- | flake8/checker.py | 2 | ||||
| -rw-r--r-- | flake8/style_guide.py | 11 |
2 files changed, 1 insertions, 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 |
