mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Use asottile/add-trailing-comma
This commit is contained in:
parent
1a07a24d13
commit
0c70fa4229
32 changed files with 74 additions and 70 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue