mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 13:45:19 -04:00
precommit: Ignore .log files
This commit is contained in:
parent
48dc2d0e72
commit
8c9193c8b1
1 changed files with 2 additions and 1 deletions
|
|
@ -112,9 +112,10 @@ def main():
|
|||
continue
|
||||
file_list += [os.path.join(root, fn) for fn in files]
|
||||
|
||||
# Filter symlinks, backup copies, and hidden files.
|
||||
# Filter symlinks, backup copies, logs, and hidden files.
|
||||
file_list = [fn for fn in file_list if not os.path.islink(fn)]
|
||||
file_list = [fn for fn in file_list if not fn[-1] in ("~", "#")]
|
||||
file_list = [fn for fn in file_list if not fn.endswith(".log")]
|
||||
file_list = [fn for fn in file_list if not os.path.basename(fn).startswith(".")]
|
||||
|
||||
# Sort files by size as larger ones will take longer to process.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue