Use asottile/add-trailing-comma

This commit is contained in:
Anthony Sottile 2017-07-12 18:30:51 -07:00
parent 1a07a24d13
commit 0c70fa4229
32 changed files with 74 additions and 70 deletions

View file

@ -59,7 +59,7 @@ def _update_repo(repo_config, runner, tags_only):
if hooks_missing:
raise RepositoryCannotBeUpdatedError(
'Cannot update because the tip of master is missing these hooks:\n'
'{}'.format(', '.join(sorted(hooks_missing)))
'{}'.format(', '.join(sorted(hooks_missing))),
)
return new_config

View file

@ -51,7 +51,7 @@ def install(
'Running in migration mode with existing hooks at {}\n'
'Use -f to use only pre-commit.'.format(
legacy_path,
)
),
)
with io.open(hook_path, 'w') as pre_commit_file_obj:

View file

@ -235,7 +235,7 @@ def run(runner, args, environ=os.environ):
logger.error(
'Your .pre-commit-config.yaml is unstaged.\n'
'`git add .pre-commit-config.yaml` to fix this.\n'
'Run pre-commit with --allow-unstaged-config to silence this.'
'Run pre-commit with --allow-unstaged-config to silence this.',
)
return 1