Allow reporting on files passed via stdin

This commit is contained in:
Ian Cordasco 2016-06-06 19:42:12 -05:00
parent 59c3ba75e6
commit 689562f1e8
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
2 changed files with 1 additions and 12 deletions

View file

@ -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):

View file

@ -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