Skip to content
Snippets Groups Projects
Commit 93a5e1a4 authored by Campbell Barton's avatar Campbell Barton
Browse files

Don't report files as being operated on which are later filtered out

This is confusing when passing one set of files to both clang-format
and autopep8.
parent f4166874
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,13 @@ def compute_paths(paths, use_default_paths):
"source",
"tests",
)
else:
# Filter out files, this is only done so this utility wont print that it's
# "Operating" on files that will be filtered out later on.
paths = [
f for f in paths
if os.path.isfile(f) and f.endswith(extensions)
]
if os.sep != "/":
paths = [f.replace("/", os.sep) for f in paths]
......
......@@ -59,6 +59,13 @@ def compute_paths(paths, use_default_paths):
"source",
"tests/gtests",
)
else:
# Filter out files, this is only done so this utility wont print that it's
# "Operating" on files that will be filtered out later on.
paths = [
f for f in paths
if os.path.isfile(f) and f.endswith(extensions)
]
if os.sep != "/":
paths = [f.replace("/", os.sep) for f in paths]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment