There was an error while loading. Please reload this page.
1 parent 3fadbef commit ae97bb5Copy full SHA for ae97bb5
2 files changed
pre_commit/main.py
@@ -165,9 +165,6 @@ def main(argv=None):
165
)
166
_add_color_option(autoupdate_parser)
167
_add_config_option(autoupdate_parser)
168
- autoupdate_parser.add_argument(
169
- '--tags-only', action='store_true', help='LEGACY: for compatibility',
170
- )
171
autoupdate_parser.add_argument(
172
'--bleeding-edge', action='store_true',
173
help=(
@@ -312,8 +309,6 @@ def main(argv=None):
312
309
store.mark_config_used(args.config)
313
310
314
311
if args.command == 'autoupdate':
315
- if args.tags_only:
316
- logger.warning('--tags-only is the default')
317
return autoupdate(
318
args.config, store,
319
tags_only=not args.bleeding_edge,
tests/main_test.py
@@ -190,8 +190,3 @@ def test_expected_fatal_error_no_git_repo(in_tmpdir, cap_out, mock_store_dir):
190
'Is it installed, and are you in a Git repository directory?'
191
192
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