Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-tidy command now ignores files in subdirectories of ignored dirs #12313

Merged
merged 2 commits into from Jul 8, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

tidy command now ignores files in subdirectories of ignored directories

  • Loading branch information
cynicaldevil committed Jul 7, 2016
commit be98fc4c59f158a25fd91ccde58321bfeb91f247
@@ -636,7 +636,7 @@ def get_file_list(directory, only_changed_files=False, exclude_dirs=[]):
args = ["git", "ls-files", "--others", "--exclude-standard", directory]
file_list += subprocess.check_output(args)
for f in file_list.splitlines():
if os.path.join('.', os.path.dirname(f)) not in exclude_dirs:
if not any(os.path.join('.', os.path.dirname(f)).startswith(path) for path in exclude_dirs):
yield os.path.join('.', f)
elif exclude_dirs:
for root, dirs, files in os.walk(directory, topdown=True):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.