From c4b18b710ae0f8e3f058eebbd50a00dc60a614b2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:04:56 +0545 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#10676) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: skshetry <18718008+skshetry@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- dvc/cli/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1be194d180..bf5f9f93db 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 e1a3cbf498..ad929cc34a 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))