autoupdate: separate store from runner · precommit/pre-commit@0e430be · GitHub
Skip to content

Commit 0e430be

Browse files
committed
autoupdate: separate store from runner
1 parent 8f2c3cf commit 0e430be

3 files changed

Lines changed: 42 additions & 54 deletions

File tree

pre_commit/commands/autoupdate.py

Lines changed: 5 additions & 5 deletions

pre_commit/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def main(argv=None):
248248
if args.tags_only:
249249
logger.warning('--tags-only is the default')
250250
return autoupdate(
251-
runner,
251+
runner, runner.store,
252252
tags_only=not args.bleeding_edge,
253253
repos=args.repos,
254254
)

tests/commands/autoupdate_test.py

Lines changed: 36 additions & 48 deletions

0 commit comments

Comments
 (0)