diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-10 06:30:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-10 06:30:43 +0000 |
commit | c3ded2824ef2c8a2ed59b2a6e339aba8810c1e06 (patch) | |
tree | 3261d832802f924e45a17fe459b89b2a1829b75d /pre_commit/main.py | |
parent | Releasing debian version 3.2.2-1. (diff) | |
download | pre-commit-c3ded2824ef2c8a2ed59b2a6e339aba8810c1e06.tar.xz pre-commit-c3ded2824ef2c8a2ed59b2a6e339aba8810c1e06.zip |
Merging upstream version 3.3.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/main.py')
-rw-r--r-- | pre_commit/main.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pre_commit/main.py b/pre_commit/main.py index 9615c5e..9dfce2c 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -226,9 +226,13 @@ def main(argv: Sequence[str] | None = None) -> int: help='Store "frozen" hashes in `rev` instead of tag names', ) autoupdate_parser.add_argument( - '--repo', dest='repos', action='append', metavar='REPO', + '--repo', dest='repos', action='append', metavar='REPO', default=[], help='Only update this repository -- may be specified multiple times.', ) + autoupdate_parser.add_argument( + '-j', '--jobs', type=int, default=1, + help='Number of threads to use. (default %(default)s).', + ) _add_cmd('clean', help='Clean out pre-commit files.') @@ -368,10 +372,11 @@ def main(argv: Sequence[str] | None = None) -> int: if args.command == 'autoupdate': return autoupdate( - args.config, store, + args.config, tags_only=not args.bleeding_edge, freeze=args.freeze, repos=args.repos, + jobs=args.jobs, ) elif args.command == 'clean': return clean(store) |