Fix CI by upgrading AP templates

This commit is contained in:
Anthony Sottile
2020-02-03 08:41:48 -08:00
parent 31853d6c43
commit fea76b9ea1
8 changed files with 39 additions and 34 deletions

View File

@ -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