diff --git a/pyproject.toml b/pyproject.toml index 18ebe4636..38cf5da23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -243,7 +243,6 @@ ignore = [ "PT007", # TODO(bearomorphism): enable this rule "PT011", # TODO(bearomorphism): enable this rule "PT022", # TODO(bearomorphism): enable this rule - "PT030", # TODO(bearomorphism): enable this rule ] extend-safe-fixes = [ "TC", # Move imports inside/outside TYPE_CHECKING blocks diff --git a/tests/commands/test_bump_command.py b/tests/commands/test_bump_command.py index b9a6bf90f..2c4bd269b 100644 --- a/tests/commands/test_bump_command.py +++ b/tests/commands/test_bump_command.py @@ -1027,7 +1027,7 @@ def test_bump_with_major_version_zero_with_plugin( def test_bump_command_version_type_deprecation(util: UtilFixture): util.create_file_and_commit("feat: check deprecation on --version-type") - with pytest.warns(DeprecationWarning): + with pytest.warns(DeprecationWarning, match=r".*--version-type.*deprecated"): util.run_cli( "bump", "--prerelease", @@ -1044,7 +1044,7 @@ def test_bump_command_version_type_deprecation(util: UtilFixture): def test_bump_command_version_scheme_priority_over_version_type(util: UtilFixture): util.create_file_and_commit("feat: check deprecation on --version-type") - with pytest.warns(DeprecationWarning): + with pytest.warns(DeprecationWarning, match=r".*--version-type.*deprecated"): util.run_cli( "bump", "--prerelease",