codeformat: Exclude specified files even from commandline, for pre-commit

This commit is contained in:
Jeff Epler 2021-03-15 17:25:15 -05:00
parent cc1dd73e94
commit d0e3848b24

View File

@ -142,7 +142,7 @@ def main():
# Expand the globs passed on the command line, or use the default globs above.
files = []
if args.files:
files = list_files(args.files)
files = list_files(args.files, EXCLUSIONS)
else:
files = list_files(PATHS, EXCLUSIONS, TOP)