diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1be194d18..bf5f9f93d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,13 +22,13 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.9.2' + rev: 'v0.9.3' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.0 hooks: - id: codespell additional_dependencies: ["tomli"] diff --git a/dvc/cli/utils.py b/dvc/cli/utils.py index e1a3cbf49..ad929cc34 100644 --- a/dvc/cli/utils.py +++ b/dvc/cli/utils.py @@ -40,7 +40,7 @@ def hide_subparsers_from_help(subparsers): # from the 'positional arguments' choices list # see: https://bugs.python.org/issue22848 # Need to set `add_help=False`, but avoid setting `help` - # (not even to `argparse.SUPPPRESS`). + # (not even to `argparse.SUPPRESS`). # NOTE: The argument is the parent subparser, not the subcommand parser. cmds = [cmd for cmd, parser in subparsers.choices.items() if parser.add_help] subparsers.metavar = "{{{}}}".format(",".join(cmds))