mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 09:27:21 +08:00
Fix CI by upgrading AP templates
This commit is contained in:
@ -12,9 +12,8 @@ class CalledProcessError(RuntimeError):
|
||||
|
||||
|
||||
def added_files(): # type: () -> Set[str]
|
||||
return set(cmd_output(
|
||||
'git', 'diff', '--staged', '--name-only', '--diff-filter=A',
|
||||
).splitlines())
|
||||
cmd = ('git', 'diff', '--staged', '--name-only', '--diff-filter=A')
|
||||
return set(cmd_output(*cmd).splitlines())
|
||||
|
||||
|
||||
def cmd_output(*cmd, **kwargs): # type: (*str, **Any) -> str
|
||||
|
Reference in New Issue
Block a user