mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-13 07:41:19 +08:00
no cover some non-lfs lines
This commit is contained in:
@@ -23,7 +23,7 @@ def lfs_files():
|
||||
(line[:3].strip(), line[3:].rpartition(' ')[0]) for line in lines
|
||||
]
|
||||
|
||||
def to_file_part(mode, filepart):
|
||||
def to_file_part(mode, filepart): # pragma: no cover (no git-lfs)
|
||||
assert mode in ('A', 'R')
|
||||
return filepart if mode == 'A' else filepart.split(' -> ')[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user