mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 04:06:54 +00:00
Allow reporting on files passed via stdin
This commit is contained in:
parent
59c3ba75e6
commit
689562f1e8
2 changed files with 1 additions and 12 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue