From 9fb1a1d2f940ec026358d36e6b3f1a81acd7c7d9 Mon Sep 17 00:00:00 2001 From: Floris Lambrechts Date: Wed, 11 Oct 2023 11:01:59 +0200 Subject: [PATCH 1/2] Recommend calling 'bump-my-version' instead of 'bumpversion' --- bumpversion/aliases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumpversion/aliases.py b/bumpversion/aliases.py index 08039fd2..da284335 100644 --- a/bumpversion/aliases.py +++ b/bumpversion/aliases.py @@ -40,7 +40,7 @@ def resolve_command(self, ctx: Context, args: List[str]) -> tuple: original_args.remove("bump") else: print_warning( - "Calling bumpversion without a subcommand is deprecated. " "Please use `bumpversion bump` instead" + "Calling bumpversion without a subcommand is deprecated. " "Please use `bump-my-version bump` instead" ) return cmd.name, cmd, original_args return cmd.name, cmd, args From fbcef038d3b94ca1aef7a6aab52b16fc614a6a9b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 09:05:29 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- bumpversion/aliases.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumpversion/aliases.py b/bumpversion/aliases.py index da284335..92353098 100644 --- a/bumpversion/aliases.py +++ b/bumpversion/aliases.py @@ -40,7 +40,8 @@ def resolve_command(self, ctx: Context, args: List[str]) -> tuple: original_args.remove("bump") else: print_warning( - "Calling bumpversion without a subcommand is deprecated. " "Please use `bump-my-version bump` instead" + "Calling bumpversion without a subcommand is deprecated. " + "Please use `bump-my-version bump` instead" ) return cmd.name, cmd, original_args return cmd.name, cmd, args