mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
Fix CI by upgrading AP templates
This commit is contained in:
parent
31853d6c43
commit
fea76b9ea1
8 changed files with 39 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue