Skip to content

Commit

Permalink
correct kwarg name with cli, fix #100 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Mar 21, 2022
1 parent 8530b11 commit 59c5eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_ignore(mocker, tmp_work_path):
args=('tests.test_cli.foobar', '/path/to/tty'),
callback=callback,
watcher_kwargs={
'ignore_paths': {str(tmp_work_path / 'foo'), str(tmp_work_path / 'bar')},
'ignored_paths': {str(tmp_work_path / 'foo'), str(tmp_work_path / 'bar')},
'extensions': ('.md',),
},
)
Expand Down
2 changes: 1 addition & 1 deletion watchgod/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def cli(*args_: str) -> None:

watcher_kwargs: Dict[str, Any] = {}
if arg_namespace.ignore_paths:
watcher_kwargs['ignore_paths'] = {str(Path(p).resolve()) for p in arg_namespace.ignore_paths}
watcher_kwargs['ignored_paths'] = {str(Path(p).resolve()) for p in arg_namespace.ignore_paths}

extensions = arg_namespace.extensions
if arg_namespace.extensions:
Expand Down

0 comments on commit 59c5eb3

Please sign in to comment.