mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
include checking symlinks
This commit is contained in:
parent
b00637beb5
commit
a70abd04e7
3 changed files with 5 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ def get_files_matching(all_file_list_strategy):
|
|||
if (
|
||||
include_regex.search(filename) and
|
||||
not exclude_regex.search(filename) and
|
||||
os.path.exists(filename)
|
||||
os.path.lexists(filename)
|
||||
)
|
||||
)
|
||||
return wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue