diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-10 06:30:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-10 06:30:40 +0000 |
commit | f174d1c83b97cd7007a792255c5e132306e6c1a3 (patch) | |
tree | 0506eadfc5ef4db1ca746799d35d4610df9a9c78 /pre_commit/main.py | |
parent | Adding upstream version 3.2.2. (diff) | |
download | pre-commit-f174d1c83b97cd7007a792255c5e132306e6c1a3.tar.xz pre-commit-f174d1c83b97cd7007a792255c5e132306e6c1a3.zip |
Adding upstream version 3.3.1.upstream/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) |