diff --git a/src/darker/files.py b/src/darker/files.py index 2c5897d38..ffc1bd73f 100644 --- a/src/darker/files.py +++ b/src/darker/files.py @@ -108,7 +108,7 @@ def _gen_python_files( root_relative_path = f"{root_relative_path}/" if any( - _path_is_excluded(root_relative_path, x) + _path_is_excluded(root_relative_path, x) for x in [exclude, extend_exclude, force_exclude] ) or _resolves_outside_root_or_cannot_stat(child, root): continue