Skip to content

Commit ae97bb5

Browse files
committed
Remove autoupdate --tags-only option
1 parent 3fadbef commit ae97bb5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

pre_commit/main.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ def main(argv=None):
165165
)
166166
_add_color_option(autoupdate_parser)
167167
_add_config_option(autoupdate_parser)
168-
autoupdate_parser.add_argument(
169-
'--tags-only', action='store_true', help='LEGACY: for compatibility',
170-
)
171168
autoupdate_parser.add_argument(
172169
'--bleeding-edge', action='store_true',
173170
help=(
@@ -312,8 +309,6 @@ def main(argv=None):
312309
store.mark_config_used(args.config)
313310

314311
if args.command == 'autoupdate':
315-
if args.tags_only:
316-
logger.warning('--tags-only is the default')
317312
return autoupdate(
318313
args.config, store,
319314
tags_only=not args.bleeding_edge,

tests/main_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,3 @@ def test_expected_fatal_error_no_git_repo(in_tmpdir, cap_out, mock_store_dir):
190190
'Is it installed, and are you in a Git repository directory?'
191191
)
192192
assert cap_out_lines[-1] == 'Check the log at {}'.format(log_file)
193-
194-
195-
def test_warning_on_tags_only(mock_commands, cap_out, mock_store_dir):
196-
main.main(('autoupdate', '--tags-only'))
197-
assert '--tags-only is the default' in cap_out.get()

0 commit comments

Comments
 (0)