Skip to content

Commit

Permalink
Fixed minor issues !minor
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Jan 26, 2025
1 parent 30e35d4 commit 6a90377
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion bumpversion/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from bumpversion.versioning.models import VersionComponentSpec # NOQA: TC001

if TYPE_CHECKING:
from bumpversion.scm_old import SCMInfo
from bumpversion.scm.models import SCMInfo

Check warning on line 17 in bumpversion/config/models.py

View check run for this annotation

Codecov / codecov/patch

bumpversion/config/models.py#L17

Added line #L17 was not covered by tests
from bumpversion.versioning.models import VersionSpec
from bumpversion.versioning.version_config import VersionConfig

Expand Down
6 changes: 0 additions & 6 deletions bumpversion/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,4 @@ def is_subpath(parent: Path | str, path: Path | str) -> bool:
"""Return whether a path is inside the parent."""
normalized_parent = Path(parent)
normalized_path = Path(path)
print(f"normalized_parent: {normalized_parent}")
print(f"normalized_path: {normalized_path}")
print(
f"str(normalized_path).startswith(str(normalized_parent)): {str(normalized_path).startswith(str(normalized_parent))}"
)
print(f"normalized_path.is_absolute(): {normalized_path.is_absolute()}")
return str(normalized_path).startswith(str(normalized_parent)) if normalized_path.is_absolute() else True

0 comments on commit 6a90377

Please sign in to comment.