Skip to content

Commit

Permalink
fixup! Added --include and --exclude cli options
Browse files Browse the repository at this point in the history
  • Loading branch information
autophagy committed May 30, 2018
1 parent 1b28854 commit 92b08ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion black.py
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,9 @@ def get_future_imports(node: Node) -> Set[str]:
return imports


def gen_python_files_in_dir(path: Path, include, exclude) -> Iterator[Path]:
def gen_python_files_in_dir(
path: Path, include: Pattern[str], exclude: Pattern[str]
) -> Iterator[Path]:
"""Generate all files under `path` whose paths are not excluded by the
`exclude` regex, but are included by the `include` regex.
"""
Expand Down

0 comments on commit 92b08ea

Please sign in to comment.